public class OTSReplication extends nl.tudelft.simulation.dsol.experiment.Replication.TimeDoubleUnit<OTSSimulatorInterface>
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
nl.tudelft.simulation.dsol.experiment.Replication.CalendarDouble<S extends nl.tudelft.simulation.dsol.simulators.SimulatorInterface.CalendarDouble>, nl.tudelft.simulation.dsol.experiment.Replication.CalendarFloat<S extends nl.tudelft.simulation.dsol.simulators.SimulatorInterface.CalendarFloat>, nl.tudelft.simulation.dsol.experiment.Replication.CalendarLong<S extends nl.tudelft.simulation.dsol.simulators.SimulatorInterface.CalendarLong>, nl.tudelft.simulation.dsol.experiment.Replication.TimeDouble<S extends nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDouble>, nl.tudelft.simulation.dsol.experiment.Replication.TimeDoubleUnit<S extends nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit>, nl.tudelft.simulation.dsol.experiment.Replication.TimeFloat<S extends nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeFloat>, nl.tudelft.simulation.dsol.experiment.Replication.TimeFloatUnit<S extends nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeFloatUnit>, nl.tudelft.simulation.dsol.experiment.Replication.TimeLong<S extends nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeLong>| Constructor and Description |
|---|
OTSReplication(String id,
nl.tudelft.simulation.dsol.experiment.Experiment.TimeDoubleUnit<OTSSimulatorInterface> experiment) |
| Modifier and Type | Method and Description |
|---|---|
static OTSReplication |
create(String id,
Time startTime,
Duration warmupPeriod,
Duration runLength,
OTSModelInterface model)
Create a new OTSReplication.
|
HistoryManager |
getHistoryManager(OTSSimulatorInterface simulator)
Returns the history manager.
|
void |
setHistoryManager(HistoryManager historyManager)
Set history manager.
|
String |
toString() |
create, getExperiment, getTreatmentpublic OTSReplication(String id, nl.tudelft.simulation.dsol.experiment.Experiment.TimeDoubleUnit<OTSSimulatorInterface> experiment) throws NamingException
id - String; the id of the Replication.experiment - Experiment.TimeDoubleUnit<OTSSimulatorInterface>; ExperimentNamingException - when the context for the replication cannot be createdpublic static OTSReplication create(String id, Time startTime, Duration warmupPeriod, Duration runLength, OTSModelInterface model) throws NamingException
id - String; id of the new OTSReplicationstartTime - Time; the start time of the new OTSReplicationwarmupPeriod - Duration; the warmup period of the new OTSReplicationrunLength - Duration; the run length of the new OTSReplicationmodel - OTSModelInterface; the modelNamingException - when the context for the replication cannot be createdpublic HistoryManager getHistoryManager(OTSSimulatorInterface simulator)
simulator - OTSSimulatorInterface; simulatorpublic void setHistoryManager(HistoryManager historyManager)
historyManager - HistoryManager; history manager to setpublic final String toString()
toString in class nl.tudelft.simulation.dsol.experiment.Replication<Time,Duration,nl.tudelft.simulation.dsol.simtime.SimTimeDoubleUnit,OTSSimulatorInterface>Copyright © 2014–2019 Delft University of Technology. All rights reserved.