se.liu.ida.critiquer.simulation
Interface SimulationElement

All Superinterfaces:
Serializable
All Known Subinterfaces:
AgentSimulationState
All Known Implementing Classes:
DefaultAgentSimulationState, FuelLowCritic, SimulationCritic

public interface SimulationElement
extends Serializable


Method Summary
 void initSimulation(SimulationEngine engine)
          this method is called when the simulation is initiated.
 void stepBackward(int step)
          Called by the simulation engine when the time is decreased in the simulation.
 void stepForward(int step)
          Called by the simulation engine when the time is increased in the simulation.
 void stepTo(Calendar time)
          Called by the simulation engine when it is useful to step to a fix point in time instead of incrementally
 

Method Detail

initSimulation

void initSimulation(SimulationEngine engine)
this method is called when the simulation is initiated.


stepForward

void stepForward(int step)
Called by the simulation engine when the time is increased in the simulation. The time amount must be positive and is measured in minutes.

Parameters:
step - in minutes forward

stepBackward

void stepBackward(int step)
Called by the simulation engine when the time is decreased in the simulation. The time amount must be negative and is measured in minutes.

Parameters:
step - in minutes backwards

stepTo

void stepTo(Calendar time)
Called by the simulation engine when it is useful to step to a fix point in time instead of incrementally

Parameters:
time -