Exemplo n.º 1
0
 // ------------------------------------------------------------------------
 // *****---Node Deleted---******//
 // this function defines what you do when a new node is deleted
 // It is called by net.tinyos.tinydb.topology.PacketAnalyzer.ObjectMainter
 public synchronized void NodeDeleted(NodeEvent e) {
   Integer deletedNodeNumber =
       e.GetNodeNumber(); // you probably want to delete the info pbject to track the data of
   // this new node
   proprietaryNodeInfo.remove(deletedNodeNumber);
 }
Exemplo n.º 2
0
 // It is called by net.tinyos.tinydb.topology.PacketAnalyzer.ObjectMainter
 public synchronized void NodeCreated(NodeEvent e) {
   Integer newNodeNumber =
       e.GetNodeNumber(); // you probably want to create a new info pbject to track the data of
   // this new node
   proprietaryNodeInfo.put(newNodeNumber, new NodeInfo(newNodeNumber));
 }