|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface contains the methods which must be implemented
by ant developers. The main method to be implemented is
run()
, which is invoked by a nest when an ant
is received. Method run()
contains the ant
algorithm.
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 ants. |
Method Detail |
public void init(AntView view)
init()
.
FIXME Implement the control in LocalAntView.
public void run(AntView view)
run()
method must be executed in a controlled
environment, meaning that the ant cannot be enabled to
access nest resources besides of the methods provided
by the AntView
interface.
view
- reference to the AntView
object which
is the communication interface between ants and nests.public String getSpecies()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |