|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--anthill.types.ArrayReturnPath
| Constructor Summary | |
ArrayReturnPath()
Constructs a new empty return path. |
|
ArrayReturnPath(Factory factory,
String name)
Constructs a new empty return path. |
|
| 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ArrayReturnPath(Factory factory,
String name)
factory - the factory to be used to read configuration arguments
and to create other configurable objectsname - the name that is associated to this instance in the
configuration filepublic ArrayReturnPath()
| Method Detail |
public void init(AntView view)
init method of
ants.
init in interface ReturnPathview - the current view associated to the ant using this
data structure
public boolean addLast(AntView view,
NestId id)
addLast in interface ReturnPathview - the current view associated to the ant using this
data structure
NullPointerException - if id is nullpublic NestId removeLast(AntView view)
removeLast in interface ReturnPathview - the current view associated to the ant using this
data structurepublic int size()
size in interface ReturnPathpublic int capacity()
capacity in interface ReturnPath
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||