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-12-29 03:56:14 +0100 (Tue, 29 Dec 2015) $, @version $Revision: 1668 $, 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, wait
description, shortName
protected 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 nl.tudelft.simulation.dsol.SimRuntimeException, NamingException, OTSSimulationException
buildSimulator
in interface WrappableSimulation
startTime
- Time.Abs; the start time of the simulationwarmupPeriod
- Time.Rel; the warm up period of the simulation (use new Time.Rel(0, SECOND) if you don't know what
this is)runLength
- Time.Rel; 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 ignorednl.tudelft.simulation.dsol.SimRuntimeException
- on ???NamingException
- when context for the animation cannot be createdOTSSimulationException
- when the construction of the simulation, the control panel, the animation, or the charts
failsprotected abstract OTSModelInterface makeModel() throws OTSSimulationException
OTSSimulationException
- when the construction of the model failspublic final ArrayList<AbstractProperty<?>> getProperties()
getProperties
in interface WrappableSimulation
Copyright © 2014–2016 Delft University of Technology. All rights reserved.