|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--anthill.nestor.LocalManager
Class LocalManager
is the implementation of Manager
to be used during off-line simulations. No thread is used in this implementation;
instead, the execution of the algorithm of a single ant may be forced by invoking
method execute()
. This method is used by Scenario
implementations in order to force progress of the ant algorithm over the
simulated network.
Constructor Summary | |
LocalManager()
|
Method Summary | |
void |
add(AntView view)
Adds an ant to the queue of ants to be executed |
void |
clear()
Restores the object to its initial state. |
void |
execute()
Executes an ant stored in this LocalManager . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LocalManager()
Method Detail |
public void add(AntView view)
add
in interface Manager
view
- the ant to be added is encapsulated
in a AntView
public void execute()
LocalManager
.execute
in interface Manager
public void clear()
clear
in interface Clearable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |