|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--EASE.Agents.Engine.Controller
Field Summary | |
private ActInterface |
actuators
|
private AllAgents |
allAgents
|
private long |
cycleTime
|
private Debugger |
debugger
|
private int |
outputCounter
|
private int |
outputRate
|
private long |
outputTime
|
private boolean |
stop
|
private java.util.Vector |
toDelete
|
Fields inherited from class java.lang.Thread |
contextClassLoader,
daemon,
eetop,
group,
inheritedAccessControlContext,
initial_stack_memory,
MAX_PRIORITY,
MIN_PRIORITY,
name,
NORM_PRIORITY,
priority,
PrivateInfo,
single_step,
stillborn,
stopThreadPermission,
target,
threadInitNumber,
threadQ,
values |
Constructor Summary | |
Controller(ActInterface actuators)
Starts up the controller. |
Method Summary | |
private java.util.Vector |
agents()
|
private java.util.Vector |
factories()
|
private void |
performAction(InstantiatedAgent agent)
|
private void |
performEngineerAction(InstantiatedEngineer agent)
Perform actions for an engineer. |
private void |
performInstantiatedListAction(InstantiatedListAgent listManager)
Perform InstantiatedListAgent action. |
private void |
performManagerAction(InstantiatedManager manager)
Perform actions of a manager. |
void |
run()
For ever For each agent execute agent End Start factory threads When out of time stop factory threads get and output factory output End |
void |
safeStop()
|
Methods inherited from class java.lang.Thread |
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
private boolean stop
private ActInterface actuators
private Debugger debugger
private AllAgents allAgents
private java.util.Vector toDelete
private long cycleTime
private long outputTime
private int outputRate
private int outputCounter
Constructor Detail |
public Controller(ActInterface actuators)
Parameter is the output interface to the simulator.
Will need a paramater which is the specification to run . .
Method Detail |
public void run()
private void performAction(InstantiatedAgent agent)
private void performEngineerAction(InstantiatedEngineer agent)
Either register or deregister with a single factory or terminate itself (or more than one).
private void performManagerAction(InstantiatedManager manager)
Either makes or breaks contracts (or both).
Fix to include the parameters.
private void performInstantiatedListAction(InstantiatedListAgent listManager)
Either make or break contracts (or both)
public void safeStop()
private java.util.Vector agents()
private java.util.Vector factories()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |