Class TestSimulator
java.lang.Object
org.opentrafficsim.kpi.sampling.impl.TestSimulator
Test simulator.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEvent
(TestSampler sampler, org.djunits.value.vdouble.scalar.Time time, TestLaneData lane, boolean start) Add event.void
executeUntil
(org.djunits.value.vdouble.scalar.Time time) Executes all events until time (inclusive).org.djunits.value.vdouble.scalar.Time
getTime()
Returns the current time.void
setTime
(org.djunits.value.vdouble.scalar.Time time) Set time.
-
Constructor Details
-
TestSimulator
public TestSimulator()Constructor.
-
-
Method Details
-
addEvent
public void addEvent(TestSampler sampler, org.djunits.value.vdouble.scalar.Time time, TestLaneData lane, boolean start) Add event.- Parameters:
sampler
- samplertime
- timelane
- lanestart
- start or stop recording
-
executeUntil
public void executeUntil(org.djunits.value.vdouble.scalar.Time time) Executes all events until time (inclusive).- Parameters:
time
- time
-
setTime
public void setTime(org.djunits.value.vdouble.scalar.Time time) Set time.- Parameters:
time
- time
-
getTime
public org.djunits.value.vdouble.scalar.Time getTime()Returns the current time.- Returns:
- time
-