Class OtsReplication

java.lang.Object
nl.tudelft.simulation.dsol.experiment.Replication<T>
nl.tudelft.simulation.dsol.experiment.SingleReplication<org.djunits.value.vdouble.scalar.Duration>
org.opentrafficsim.core.dsol.OtsReplication
All Implemented Interfaces:
Treatment<org.djunits.value.vdouble.scalar.Duration>, nl.tudelft.simulation.naming.context.Contextualized

public class OtsReplication extends SingleReplication<org.djunits.value.vdouble.scalar.Duration>
Simulation replication with history manager.

Copyright (c) 2013-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck
  • Constructor Details

    • OtsReplication

      public OtsReplication(String id, org.djunits.value.vdouble.scalar.Duration startTimeOfDay, org.djunits.value.vdouble.scalar.Duration warmupPeriod, org.djunits.value.vdouble.scalar.Duration runLength, HistoryManager historyManager) throws NamingException
      Create a new OtsReplication.
      Parameters:
      id - id of the new OtsReplication
      startTimeOfDay - the start time of the new OtsReplication
      warmupPeriod - the warm-up period of the new OtsReplication
      runLength - the run length of the new OtsReplication
      historyManager - history manager
      Throws:
      NamingException - when the context for the replication cannot be created
  • Method Details

    • getHistoryManager

      public HistoryManager getHistoryManager(OtsSimulatorInterface simulator)
      Returns the history manager.
      Parameters:
      simulator - simulator
      Returns:
      history manager
    • getStartTimeOfDay

      public org.djunits.value.vdouble.scalar.Duration getStartTimeOfDay()
      Returns the start time-of-day.
      Returns:
      start time-of-day
    • toString

      public final String toString()
      Overrides:
      toString in class SingleReplication<org.djunits.value.vdouble.scalar.Duration>