Class OtsReplication

All Implemented Interfaces:
Treatment<Duration>, nl.tudelft.simulation.naming.context.Contextualized

public class OtsReplication extends SingleReplication<Duration>
Simulation replication with history manager.

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
  • Constructor Details

    • OtsReplication

      public OtsReplication(String id, Time startTime, Duration warmupPeriod, 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 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 SingleReplication<Duration>