|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ants.freeant.ResponseGnutant
In this version, I've removed the support for fake probability. Could be re-inserted later.
Constructor Summary | |
ResponseGnutant()
Default constructor for externalization |
|
ResponseGnutant(RequestId rid,
Resource[] resources,
NestId requestor)
Initializes a new ResponseGnutant with the set of resources to be returned, the identifier of the requestor nest and an ant identifier to be used to obtain return information through nests. |
Method Summary | |
String |
getSpecies()
Returns the identifier of the "species" of this ant. |
void |
init(AntView view)
This method is called on ants at the initialization time. |
void |
run(AntView view)
This method encapsulate the computation performed by the ant. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResponseGnutant(RequestId rid, Resource[] resources, NestId requestor)
public ResponseGnutant()
Method Detail |
public String getSpecies()
Ant
getSpecies
in interface Ant
public void init(AntView view)
Ant
init()
.
FIXME Implement the control in LocalAntView.
init
in interface Ant
public void run(AntView view)
run
in interface Ant
view
- reference to the AntView object which
constitutes the controlled environment of the ant
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |