Class TestSimulator

java.lang.Object
org.opentrafficsim.kpi.sampling.impl.TestSimulator

public class TestSimulator extends Object
Test simulator.
  • 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 - sampler
      time - time
      lane - lane
      start - 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