Package xdevs.core.simulation
Class SimulationClock
- java.lang.Object
-
- xdevs.core.simulation.SimulationClock
-
public class SimulationClock extends Object
This class represents the simulation clock. The simulation clock is a double value that represents the current time of the simulation.
-
-
Field Summary
Fields Modifier and Type Field Description protected double
time
The current time of the simulation.
-
Constructor Summary
Constructors Constructor Description SimulationClock()
Creates a new simulation clock with initial time 0.SimulationClock(double time)
Creates a new simulation clock with the given initial time.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getTime()
Gets the current simulation time.void
setTime(double time)
Sets the current simulation time.
-