|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--jxtaimpl.Manager
Implementations of Manager capable to manage multiple
threads.
| Field Summary |
| Fields inherited from interface anthill.nest.Manager |
NAME |
| Constructor Summary | |
Manager(Factory factory,
String component)
|
|
Manager(int nthreads)
Instantiates a thread manager by creating a number of threads which will take care of the ants. |
|
| 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()
Execute an ant stored in this Manager |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Manager(int nthreads)
public Manager(Factory factory,
String component)
| Method Detail |
public void add(AntView view)
add in interface Managerview - the ant to be added, together with
its environmentpublic void execute()
execute in interface Managerpublic void clear()
clear in interface Clearable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||