public class DiscreteTimeModel extends TimeModel
TimeModel.TEMPORALMODE
outputScheme, processModel, simulationTime
associatedSimulationContainer
Constructor and Description |
---|
DiscreteTimeModel(SimulationContainer simulationContainer,
ProcessModel processModel,
int numberTotalSteps,
boolean synchronousTimeRegime)
A DiscreteTimeModel governs the temporal aspects of a simulation in the simulation container
and the process model in it for a number of steps specified, with agent
behavior synchronicity specified
|
Modifier and Type | Method and Description |
---|---|
int |
getNumberTotalSteps() |
boolean |
isSynchronousTimeRegime() |
void |
startSimulation()
This method starts the simulation, and calls the step()
method the number of times specified.
|
getProcessModel, getSimulationTime, setOutputScheme
getAssociatedSimulationContainer
public DiscreteTimeModel(SimulationContainer simulationContainer, ProcessModel processModel, int numberTotalSteps, boolean synchronousTimeRegime)
simulationContainer
- The container the simulation runs inprocessModel
- The process model the simulation is based onnumberTotalSteps
- The number of steps the simulation is to runsynchronousTimeRegime
- Whether agents should (be forced to) act in synchrony or notpublic int getNumberTotalSteps()
public boolean isSynchronousTimeRegime()
public void startSimulation()
startSimulation
in class TimeModel