OTSReplication.java

package org.opentrafficsim.core.dsol;

import javax.naming.NamingException;

import nl.tudelft.simulation.dsol.experiment.Experiment;
import nl.tudelft.simulation.dsol.experiment.Replication;

import org.djunits.unit.TimeUnit;
import org.djunits.value.vdouble.scalar.DoubleScalar;

/**
 * <p>
 * Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
 * BSD-style license. See <a href="http://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
 * <p>
 * @version $Revision: 2051 $, $LastChangedDate: 2016-05-28 11:33:31 +0200 (Sat, 28 May 2016) $, by $Author: averbraeck $,
 *          initial version Aug 15, 2014 <br>
 * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
 */
public class OTSReplication extends
    Replication<DoubleScalar.Abs<TimeUnit>, DoubleScalar.Rel<TimeUnit>, OTSSimTimeDouble>
{
    /**
     * @param experiment Experiment
     * @throws NamingException when the context for the replication cannot be created
     */
    public OTSReplication(
        final Experiment<DoubleScalar.Abs<TimeUnit>, DoubleScalar.Rel<TimeUnit>, OTSSimTimeDouble> experiment)
        throws NamingException
    {
        super(experiment);
    }

    /**
     * Create a new OTSReplication.
     * @param id String; id of the new OTSReplication
     * @param startTime OTSSimTimeDouble; the start time of the new OTSReplication
     * @param warmupPeriod Duration; the warmup period of the new OTSReplication
     * @param runLength DoubleScalarRel&lt;TimeUnit&gt;; the run length of the new OTSReplication
     * @param model OTSModelInterface; the model
     * @throws NamingException when the context for the replication cannot be created
     */
    public OTSReplication(final String id, final OTSSimTimeDouble startTime,
        final DoubleScalar.Rel<TimeUnit> warmupPeriod, final DoubleScalar.Rel<TimeUnit> runLength,
        final OTSModelInterface model) throws NamingException
    {
        super(id, startTime, warmupPeriod, runLength, model);
    }

    /** */
    private static final long serialVersionUID = 20140815L;

    /** {@inheritDoc} */
    @Override
    public final String toString()
    {
        return "OTSReplication []";
    }
}