Differences
This shows you the differences between two versions of the page.
nodepattern [2013/11/04 00:29] mroriz created |
nodepattern [2017/07/21 03:08] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== NodePattern ====== | ||
- | The NodePattern service enables applications to detect when a specific node behave differently from a specified pattern. Currently, the service provide detection mechanism for movement aspects, precisely speed and distance the node moved. | ||
- | TODO | ||
- | |||
- | ===== Service Architecture ===== | ||
- | The services defines a protocol to subscribe, unsubscribe, | ||
- | |||
- | ===== Service API (if exists) ===== | ||
- | Service API (if exists) | ||
- | * '' | ||
- | |||
- | * '' | ||
- | |||
- | ===== Service Usage ===== | ||
- | |||
- | <file java Client.java> | ||
- | private void register() { | ||
- | Protocol protocol = new Protocol(Operation.REGISTER, | ||
- | Pattern pattern = new Pattern(700, | ||
- | protocol.setPayload(pattern); | ||
- | |||
- | applicationMessage = new ApplicationMessage(); | ||
- | applicationMessage.setContentObject(protocol); | ||
- | applicationMessage.setSenderID(nodeID); | ||
- | |||
- | try { | ||
- | myConnection.sendMessage(applicationMessage); | ||
- | } catch (IOException e) { | ||
- | e.printStackTrace(); | ||
- | } | ||
- | } | ||
- | </ | ||
- | |||
- | ==== Contact ==== | ||
- | * Marcos Roriz: mroriz@inf.puc-rio.br |