| 
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface to an object which is simulating the network.
| Method Summary | |
 void | 
deliverMessage(Message msg,
               PastryNode node)
Deliver message.  | 
 DirectNodeHandle | 
getClosest(NodeId nid)
Gets the Closest attribute of the NetworkSimulator object  | 
 TestRecord | 
getTestRecord()
Gets the TestRecord attribute of the NetworkSimulator object  | 
 boolean | 
isAlive(NodeId nid)
Checks to see if a node id is alive.  | 
 int | 
proximity(NodeId a,
          NodeId b)
Determines proximity between two nodes.  | 
 void | 
registerNodeId(DirectNodeHandle nh)
Registers a node handle with the simulator.  | 
 void | 
setAlive(NodeId nid,
         boolean alive)
Sets the Alive attribute of the NetworkSimulator object  | 
 void | 
setTestRecord(TestRecord tr)
Sets the TestRecord attribute of the NetworkSimulator object  | 
 boolean | 
simulate()
Simulate one message delivery.  | 
| Method Detail | 
public void registerNodeId(DirectNodeHandle nh)
nh - the node handle to register.public boolean isAlive(NodeId nid)
nid - a node id.
public int proximity(NodeId a,
                     NodeId b)
a - a node id.b - another node id.
public void deliverMessage(Message msg,
                           PastryNode node)
msg - message to deliver.node - the Pastry node to deliver it to.public boolean simulate()
public void setTestRecord(TestRecord tr)
tr - The new TestRecord valuepublic TestRecord getTestRecord()
public DirectNodeHandle getClosest(NodeId nid)
nid - DESCRIBE THE PARAMETER
public void setAlive(NodeId nid,
                     boolean alive)
nid - The new Alive valuealive - The new Alive value
  | 
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||