|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--anthill.nest.AntDescriptor
This class contains information about an ant,including the identifier of the nest which has sent it to this host, the identifier of the ant, the remaining time-to-live and a reference to the ant itself.
Constructor Summary | |
AntDescriptor(NestId sender,
Ant ant,
int ttl)
Instantiates an ant descriptor and copies the initialization parameters in it. |
Method Summary | |
Ant |
getAnt()
Return a reference to the ant associated with this ant descriptor. |
NestId |
getLastVisited()
Return the identifier of the last nest visited by the ant associated with this ant descriptor. |
int |
getTTL()
Return the remaining time-to-live of this ant. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AntDescriptor(NestId sender, Ant ant, int ttl)
Method Detail |
public Ant getAnt()
public NestId getLastVisited()
public int getTTL()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |