public interface WrappableAnimation
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: 2015-08-23 12:51:29 +0200 (Sun, 23 Aug 2015) $, @version $Revision: 1293 $, by $Author: averbraeck $,
initial version 17 dec. 2014
Modifier and Type | Method and Description |
---|---|
SimpleSimulatorInterface |
buildAnimator(org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Duration warmupPeriod,
org.djunits.value.vdouble.scalar.Duration runLength,
List<org.opentrafficsim.base.modelproperties.Property<?>> properties,
Rectangle rect,
boolean exitOnClose)
Build the animation.
|
String |
description()
Return a description of the simulation (HTML formatted).
|
List<org.opentrafficsim.base.modelproperties.Property<?>> |
getProperties()
Retrieve a list of visible properties of the simulation.
|
List<org.opentrafficsim.base.modelproperties.Property<?>> |
getUserModifiedProperties()
Retrieve a list of properties as the user has modified them.
|
SimpleSimulatorInterface |
rebuildSimulator(Rectangle rect)
Restart (rebuild) the simulation.
|
void |
setNextReplication(Integer nextReplication)
Set the number of the next spawned replication.
|
String |
shortName()
Return a very short description of the simulation.
|
void |
stopTimersThreads()
Stop the timers and threads that are connected when disposing of this wrappable simulation.
|
SimpleSimulatorInterface buildAnimator(org.djunits.value.vdouble.scalar.Time startTime, org.djunits.value.vdouble.scalar.Duration warmupPeriod, org.djunits.value.vdouble.scalar.Duration runLength, List<org.opentrafficsim.base.modelproperties.Property<?>> properties, Rectangle rect, boolean exitOnClose) 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
- List<Property<?>>; the (possibly user-modified) properties. This list must contain all the
properties returned by getProperties(); any additional properties may be ignoredrect
- the x, y, width and height for the window to rebuild. Use null for maximized screen.exitOnClose
- Use EXIT_ON_CLOSE when true, DISPOSE_ON_CLOSE when false on closing of the window.nl.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 keySimpleSimulatorInterface rebuildSimulator(Rectangle rect) throws nl.tudelft.simulation.dsol.SimRuntimeException, NetworkException, NamingException, OTSSimulationException, org.opentrafficsim.base.modelproperties.PropertyException
rect
- the x, y, width and height for the window to rebuild. Use null for maximized screen.nl.tudelft.simulation.dsol.SimRuntimeException
- on ???NetworkException
- on Network inconsistencyNamingException
- when context for the animation cannot be createdOTSSimulationException
- when the (re)construction of the simulation model failsorg.opentrafficsim.base.modelproperties.PropertyException
- when one of the user modified properties has the empty string as keyString shortName()
String description()
List<org.opentrafficsim.base.modelproperties.Property<?>> getProperties()
List<org.opentrafficsim.base.modelproperties.Property<?>> getUserModifiedProperties()
void stopTimersThreads()
void setNextReplication(Integer nextReplication)
nextReplication
- Integer; the next replication number, or null to use the built-in auto-incrementing replication
counterCopyright © 2014–2017 Delft University of Technology. All rights reserved.