|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxtaimpl.Trail
This class is meant for storing associations such as (AntId, NestId) where the NestId identifies the nest this ant came from
Field Summary |
Fields inherited from interface anthill.storage.Trail |
NAME |
Constructor Summary | |
Trail()
Default constructor |
Method Summary | |
boolean |
add(AntId antId,
NestId srcNest)
Add a new entry. |
void |
clear()
Bring the initial state of this object back |
NestId |
lookup(AntId antId,
boolean remove)
Look for the NestId associated with the provided AntId. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Trail()
Method Detail |
public boolean add(AntId antId, NestId srcNest)
add
in interface Trail
public NestId lookup(AntId antId, boolean remove)
lookup
in interface Trail
antId
- the identifier of the antremove
- true if the association (ant id, nest id)
should be removed after retrievalpublic void clear()
clear
in interface Clearable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |