|
||||||||||
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 | ||
---|---|---|
Agent |
getAgent()
|
|
|
getProperty(java.lang.String name,
java.lang.Class<C> type)
There may be a number of properties associated with a state of an agent during a simulation. |
|
void |
renderState(SimulationView view,
java.awt.Graphics2D g2)
Render a visual representation of this agent state in the simulation view. |
|
void |
setPropertyMap(java.util.HashMap<java.lang.String,?> propertyMap)
Create the property map used during the simulation. |
Methods inherited from interface se.liu.ida.critiquer.simulation.SimulationElement |
---|
initSimulation, stepBackward, stepForward |
Method Detail |
---|
void setPropertyMap(java.util.HashMap<java.lang.String,?> propertyMap)
propertyMap
- <C> C getProperty(java.lang.String name, java.lang.Class<C> type)
C
- -
The class of the value this property representsname
- of the propertytype
- of the property
name
, null
if not available.void renderState(SimulationView view, java.awt.Graphics2D g2)
view
- g2
- Agent getAgent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |