|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.liu.ida.critiquer.simulation.SimulationEngine
public class SimulationEngine
This class represents an object that updates the state information of agents that are part of the current simulation, as well as active constraints
Constructor Summary | |
---|---|
SimulationEngine()
|
Method Summary | |
---|---|
ArrayList<AgentSimulationState> |
getAgentSimulationStates()
|
Calendar |
getCurrentTime()
|
void |
init(Calendar startTime)
|
void |
setCurrentTime(Calendar currentTime)
|
void |
stepBackwards(int step)
Reverse the simulation |
void |
stepForward(int step)
Tell all simulation elements the simulation is advancing |
void |
stepTo(Calendar time)
Tell all simulation elements the simulation is advancing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimulationEngine()
Method Detail |
---|
public void init(Calendar startTime)
public void stepForward(int step)
step
- in minutespublic void stepTo(Calendar time)
step
- in minutespublic void stepBackwards(int step)
step
- in minutes. Negative figure.public Calendar getCurrentTime()
public void setCurrentTime(Calendar currentTime)
currentTime
- The currentTime to set.public ArrayList<AgentSimulationState> getAgentSimulationStates()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |