|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents an agent that can be used in a Simulator and controlled by a Controller.
Method Summary | |
void |
executeAction(Action act,
Simulator sim)
Execute an Action in the simulator. |
Action |
getAction(java.util.Date time)
Gets the action that the Agent should be performing now. |
java.lang.String |
getName()
Gets the name of the agent. |
void |
setActionStream(ActionStream act_stream)
Set the action stream to use for control. |
Method Detail |
public java.lang.String getName()
public void setActionStream(ActionStream act_stream)
act_stream
- the ActionStream to use to control this Agent or null to
remove controlpublic Action getAction(java.util.Date time)
time
- the current time in the simulation/worldpublic void executeAction(Action act, Simulator sim)
act
- the Action to execute or null to do nothingsim
- the Simulator to execute the action in
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |