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:
Serializable, nl.tudelft.simulation.dsol.experiment.Treatment<org.djunits.value.vdouble.scalar.Duration>, nl.tudelft.simulation.naming.context.Contextualized

public class OtsReplication extends nl.tudelft.simulation.dsol.experiment.SingleReplication<org.djunits.value.vdouble.scalar.Duration>

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

Author:
Alexander Verbraeck
See Also:
  • Field Summary

    Fields inherited from class nl.tudelft.simulation.dsol.experiment.Replication

    END_REPLICATION_EVENT, START_REPLICATION_EVENT, WARMUP_EVENT
  • Constructor Summary

    Constructors
    Constructor
    Description
    OtsReplication(String id, org.djunits.value.vdouble.scalar.Time startTime, org.djunits.value.vdouble.scalar.Duration warmupPeriod, org.djunits.value.vdouble.scalar.Duration runLength, HistoryManager historyManager)
    Create a new OtsReplication.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the history manager.
    org.djunits.value.vdouble.scalar.Time
    Return the absolute start time of the simulation.
    final String
     

    Methods inherited from class nl.tudelft.simulation.dsol.experiment.SingleReplication

    removeFromContext, setContext

    Methods inherited from class nl.tudelft.simulation.dsol.experiment.Replication

    getContext, getRunControl, setContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface nl.tudelft.simulation.dsol.experiment.Treatment

    getDescription, getEndTime, getId, getRunLength, getStartTime, getWarmupPeriod, getWarmupTime, setDescription
  • Constructor Details

    • OtsReplication

      public OtsReplication(String id, org.djunits.value.vdouble.scalar.Time startTime, 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
      startTime - the start time of the new OtsReplication
      warmupPeriod - the warmup 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
    • getStartTimeAbs

      public org.djunits.value.vdouble.scalar.Time getStartTimeAbs()
      Return the absolute start time of the simulation.
      Returns:
      the absolute start time of the simulation
    • toString

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