View Javadoc
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  
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: 2386 $, $LastChangedDate: 2016-10-16 14:55:54 +0200 (Sun, 16 Oct 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 Replication<Time, Duration, OTSSimTimeDouble>
21  {
22      /**
23       * @param experiment Experiment
24       * @throws NamingException when the context for the replication cannot be created
25       */
26      public OTSReplication(final Experiment<Time, Duration, OTSSimTimeDouble> experiment) throws NamingException
27      {
28          super(experiment);
29      }
30  
31      /**
32       * Create a new OTSReplication.
33       * @param id String; id of the new OTSReplication
34       * @param startTime OTSSimTimeDouble; the start time of the new OTSReplication
35       * @param warmupPeriod Duration; the warmup period of the new OTSReplication
36       * @param runLength DoubleScalarRel&lt;TimeUnit&gt;; the run length of the new OTSReplication
37       * @param model OTSModelInterface; the model
38       * @throws NamingException when the context for the replication cannot be created
39       */
40      public OTSReplication(final String id, final OTSSimTimeDouble startTime, final Duration warmupPeriod,
41              final Duration runLength, final OTSModelInterface model) throws NamingException
42      {
43          super(id, startTime, warmupPeriod, runLength, model);
44      }
45  
46      /** */
47      private static final long serialVersionUID = 20140815L;
48  
49      /** {@inheritDoc} */
50      @Override
51      public final String toString()
52      {
53          return "OTSReplication []";
54      }
55  }