1 package org.opentrafficsim.core.dsol;
2
3 import javax.naming.NamingException;
4
5 import org.djunits.value.vdouble.scalar.Duration;
6 import org.djunits.value.vdouble.scalar.Time;
7
8 import nl.tudelft.simulation.dsol.experiment.Experiment;
9 import nl.tudelft.simulation.dsol.experiment.Replication;
10 import nl.tudelft.simulation.dsol.simtime.SimTimeDoubleUnit;
11
12 /**
13 * <p>
14 * Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
15 * BSD-style license. See <a href="http://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
16 * <p>
17 * @version $Revision: 4006 $, $LastChangedDate: 2018-09-19 13:55:45 +0200 (Wed, 19 Sep 2018) $, by $Author: averbraeck $,
18 * initial version Aug 15, 2014 <br>
19 * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
20 */
21 public class OTSReplication extends Replication<Time, Duration, SimTimeDoubleUnit>
22 {
23 /**
24 * @param experiment Experiment
25 * @throws NamingException when the context for the replication cannot be created
26 */
27 public OTSReplication(final Experiment<Time, Duration, SimTimeDoubleUnit> experiment) throws NamingException
28 {
29 super(experiment);
30 }
31
32 /**
33 * Create a new OTSReplication.
34 * @param id String; id of the new OTSReplication
35 * @param startTime SimTimeDoubleUnit; the start time of the new OTSReplication
36 * @param warmupPeriod Duration; the warmup period of the new OTSReplication
37 * @param runLength DoubleScalarRel<TimeUnit>; the run length of the new OTSReplication
38 * @param model OTSModelInterface; the model
39 * @throws NamingException when the context for the replication cannot be created
40 */
41 public OTSReplication(final String id, final SimTimeDoubleUnit startTime, final Duration warmupPeriod,
42 final Duration runLength, final OTSModelInterface model) throws NamingException
43 {
44 super(id, startTime, warmupPeriod, runLength, model);
45 }
46
47 /** */
48 private static final long serialVersionUID = 20140815L;
49
50 /** {@inheritDoc} */
51 @Override
52 public final String toString()
53 {
54 return "OTSReplication []";
55 }
56 }