public interface WrappableSimulation
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2017-04-28 03:35:59 +0200 (Fri, 28 Apr 2017) $, @version $Revision: 3569 $, by $Author: averbraeck $,
initial version 17 dec. 2014
Modifier and Type | Method and Description |
---|---|
SimpleSimulatorInterface |
buildSimulator(org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Duration warmupPeriod,
org.djunits.value.vdouble.scalar.Duration runLength,
ArrayList<org.opentrafficsim.base.modelproperties.AbstractProperty<?>> properties)
Build the simulation.
|
String |
description()
Return a description of the simulation (HTML formatted).
|
ArrayList<org.opentrafficsim.base.modelproperties.AbstractProperty<?>> |
getProperties()
Retrieve a list of visible properties of the simulation.
|
String |
shortName()
Return a very short description of the simulation.
|
SimpleSimulatorInterface buildSimulator(org.djunits.value.vdouble.scalar.Time startTime, org.djunits.value.vdouble.scalar.Duration warmupPeriod, org.djunits.value.vdouble.scalar.Duration runLength, ArrayList<org.opentrafficsim.base.modelproperties.AbstractProperty<?>> properties) throws nl.tudelft.simulation.dsol.SimRuntimeException, NetworkException, NamingException, OTSSimulationException, org.opentrafficsim.base.modelproperties.PropertyException
startTime
- Time; the start time of the simulationwarmupPeriod
- Duration; the warm up period of the simulation (use new Duration(0, SECOND) if you don't know what
this is)runLength
- Duration; the duration of the simulationproperties
- 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 ???NetworkException
- on Network inconsistencyNamingException
- when context for the animation cannot be createdOTSSimulationException
- when the construction of the simulation, the control panel, the animation, or the charts
failsorg.opentrafficsim.base.modelproperties.PropertyException
- when one of the user modified properties has the empty string as keyString shortName()
String description()
ArrayList<org.opentrafficsim.base.modelproperties.AbstractProperty<?>> getProperties()
Copyright © 2014–2017 Delft University of Technology. All rights reserved.