nodepattern

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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, register and unregister patterns about a node. 
- 
-===== Service API (if exists) ===== 
-Service API (if exists) 
-  * ''getService()'' Returns Service  
- 
-  * ''myMethod()'' Returns Service  
- 
-===== Service Usage ===== 
- 
-<file java Client.java> 
-private void register() { 
- Protocol protocol = new Protocol(Operation.REGISTER, nodeID); 
- Pattern pattern = new Pattern(700, 5000, 17000, 32000);  
- protocol.setPayload(pattern);  
- 
- applicationMessage = new ApplicationMessage();  
- applicationMessage.setContentObject(protocol);  
- applicationMessage.setSenderID(nodeID);  
- 
- try {  
- myConnection.sendMessage(applicationMessage);  
- } catch (IOException e) { 
- e.printStackTrace(); 
- }  
-} 
-</file> 
- 
-==== Contact ==== 
-  * Marcos Roriz: mroriz@inf.puc-rio.br 
  • nodepattern.txt
  • Last modified: 2017/07/21 03:08
  • (external edit)