public abstract class AbstractWrappableSimulation extends Object implements WrappableSimulation
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-09-26 12:11:42 +0200 (Sat, 26 Sep 2015) $, @version $Revision: 1454 $, by $Author: averbraeck $,
initial version Jun 18, 2015
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<AbstractProperty<?>> |
properties
The properties exhibited by this simulation.
|
| Constructor and Description |
|---|
AbstractWrappableSimulation() |
| Modifier and Type | Method and Description |
|---|---|
SimpleSimulator |
buildSimulator(org.djunits.value.vdouble.scalar.Time.Abs startTime,
org.djunits.value.vdouble.scalar.Time.Rel warmupPeriod,
org.djunits.value.vdouble.scalar.Time.Rel runLength,
ArrayList<AbstractProperty<?>> userModifiedProperties)
Build the simulation.
|
ArrayList<AbstractProperty<?>> |
getProperties()
Retrieve a list of visible properties of the simulation.
|
protected abstract OTSModelInterface |
makeModel() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdescription, shortNameprotected ArrayList<AbstractProperty<?>> properties
public final SimpleSimulator buildSimulator(org.djunits.value.vdouble.scalar.Time.Abs startTime, org.djunits.value.vdouble.scalar.Time.Rel warmupPeriod, org.djunits.value.vdouble.scalar.Time.Rel runLength, ArrayList<AbstractProperty<?>> userModifiedProperties) throws SimRuntimeException, NamingException
buildSimulator in interface WrappableSimulationstartTime - DoubleScalar.Abs<TimeUnit>; the start time of the simulationwarmupPeriod - DoubleScalar.Rel<TimeUnit>; the warm up period of the simulation (use new
DoubleScalar.Rel<TimeUnit>(0, SECOND) if you don't know what this is)runLength - DoubleScalar.Rel<TimeUnit>; the duration of the simulationuserModifiedProperties - ArrayList<AbstractProperty<?>>; the (possibly user-modified) properties. This list must
contain all the properties returned by getProperties(); any additional properties may be ignoredSimRuntimeException - on ???NamingException - when context for the animation cannot be createdprotected abstract OTSModelInterface makeModel()
public final ArrayList<AbstractProperty<?>> getProperties()
getProperties in interface WrappableSimulationCopyright © 2014–2015 Delft University of Technology. All rights reserved.