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