|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AgentSimulationState
When performing a simulation, each agent uses a state that represents the current state of the agent at the time indicated by the simulation environment.
There is also a special breed of constraints (SimulationCritic) that react to simulation changes and display critiquing information during the simulation.
These constraints as well as agent states share a common interface
SimulationElement
that the simulation engine uses when
initializing the simulaiton and stepping forward and backward in time
Method Summary | |
---|---|
void |
consumeActivity(Activity activity)
It can be useful to simulate only isolated activities, in which case this method can be used. |
Agent |
getAgent()
|
Object |
getProperty(String name)
There may be a number of properties associated with a state of an agent during a simulation. |
void |
renderState(GeoView view,
Graphics2D g2)
Render a visual representation of this agent state in the simulation view. |
void |
setProperty(String key,
Object value)
Enter property values to be used during the simulation |
Methods inherited from interface se.liu.ida.critiquer.simulation.SimulationElement |
---|
initSimulation, stepBackward, stepForward, stepTo |
Method Detail |
---|
void setProperty(String key, Object value)
key
- identifying this propertyvalue
- the valueObject getProperty(String name)
name
- of the property
name
, null
if not available.void consumeActivity(Activity activity)
activity
- void renderState(GeoView view, Graphics2D g2)
view
- g2
- Agent getAgent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |