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: 1668 $, $LastChangedDate: 2015-12-29 03:56:14 +0100 (Tue, 29 Dec 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 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 Time.Rel; 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 }