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