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-2015 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: 1329 $, $LastChangedDate: 2015-08-30 00:16:51 +0200 (Sun, 30 Aug 2015) $, 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<DoubleScalar.Abs<TimeUnit>, DoubleScalar.Rel<TimeUnit>, OTSSimTimeDouble> 21 { 22 /** 23 * @param experiment Experiment 24 * @throws NamingException when the context for the replication cannot be created 25 */ 26 public OTSReplication( 27 final Experiment<DoubleScalar.Abs<TimeUnit>, DoubleScalar.Rel<TimeUnit>, OTSSimTimeDouble> experiment) 28 throws NamingException 29 { 30 super(experiment); 31 } 32 33 /** 34 * Create a new OTSReplication. 35 * @param id String; id of the new OTSReplication 36 * @param startTime OTSSimTimeDouble; the start time of the new OTSReplication 37 * @param warmupPeriod DoubleScalar.Rel<TimeUnit>; the warmup period of the new OTSReplication 38 * @param runLength DoubleScalarRel<TimeUnit>; the run length of the new OTSReplication 39 * @param model OTSModelInterface; the model 40 * @throws NamingException when the context for the replication cannot be created 41 */ 42 public OTSReplication(final String id, final OTSSimTimeDouble startTime, final DoubleScalar.Rel<TimeUnit> warmupPeriod, 43 final DoubleScalar.Rel<TimeUnit> runLength, final OTSModelInterface model) throws NamingException 44 { 45 super(id, startTime, warmupPeriod, runLength, model); 46 } 47 48 /** */ 49 private static final long serialVersionUID = 20140815L; 50 }