====== 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 ===== TODO: 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(); } } ==== Contact ==== * Marcos Roriz: mroriz@inf.puc-rio.br