|
Nodenet Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nodenet.Packet
An object that can be sent across the network. Currently all code ignores the fact that packets are more than Objects, but in future versions the destination and the list of visited nodes may become significant.
Constructor Summary | |
Packet(java.lang.String dest)
Creates a new instance of Packet |
Method Summary | |
java.lang.Object |
clone()
Return a clone of the Packet. |
java.lang.String |
getDest()
Find out where the packet is headed. |
java.util.Vector |
getVisitList()
Get a list of the nodes visited, if they have been recorded. |
void |
logVisit(java.lang.String nodeName)
Record that a node was visited. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Packet(java.lang.String dest)
Method Detail |
public java.lang.String getDest()
public java.lang.Object clone()
public void logVisit(java.lang.String nodeName)
nodeName
- the name of the node to be reocordedpublic final java.util.Vector getVisitList()
logVisit(String)
when they handle a packet.
|
Nodenet Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |