nodepattern

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

The services defines a protocol to subscribe, unsubscribe, register and unregister patterns about a node.

Service API (if exists)

  • getService() Returns Service
  • myMethod() Returns Service

TODO:

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();
	}
}
  • Marcos Roriz: mroriz@inf.puc-rio.br
  • nodepattern.txt
  • Last modified: 2017/07/21 03:08
  • (external edit)