|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents an utility data structure that can be used by ants to obtain information about the return path to the requestor nest.
Method Summary | |
boolean |
addLast(AntView view,
NestId id)
Adds a new element to the path. |
int |
capacity()
Return the current length of the path. |
void |
init(AntView view)
Initializes this data structure. |
NestId |
removeLast(AntView view)
Removes the last element of the path and returns it to the invoker. |
int |
size()
Return the current length of the path. |
Method Detail |
public void init(AntView view)
init
method of
ants.
view
, for
example using local resource storages to maintain information
about the return path.
view
- the current view associated to the ant using this
data structurepublic boolean addLast(AntView view, NestId id)
view
, for
example using local resource storages to maintain information
about the return path.
view
- the current view associated to the ant using this
data structurepublic NestId removeLast(AntView view)
view
, for
example using local resource storages to maintain information
about the return path.
view
- the current view associated to the ant using this
data structurepublic int size()
public int capacity()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |