se.liu.ida.critiquer.simulation
Class SimulationEngine

java.lang.Object
  extended by se.liu.ida.critiquer.simulation.SimulationEngine

public class SimulationEngine
extends Object

This class represents an object that updates the state information of agents that are part of the current simulation, as well as active constraints

Author:
olale

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

SimulationEngine

public SimulationEngine()
Method Detail

init

public void init(Calendar startTime)

stepForward

public void stepForward(int step)
Tell all simulation elements the simulation is advancing

Parameters:
step - in minutes

stepTo

public void stepTo(Calendar time)
Tell all simulation elements the simulation is advancing

Parameters:
step - in minutes

stepBackwards

public void stepBackwards(int step)
Reverse the simulation

Parameters:
step - in minutes. Negative figure.

getCurrentTime

public Calendar getCurrentTime()
Returns:
Returns the currentTime.

setCurrentTime

public void setCurrentTime(Calendar currentTime)
Parameters:
currentTime - The currentTime to set.

getAgentSimulationStates

public ArrayList<AgentSimulationState> getAgentSimulationStates()
Returns:
Returns the agentSimulationStates.