public abstract class AbstractWrappableSimulation extends Object implements org.opentrafficsim.simulationengine.WrappableSimulation
Copyright (c) 2013-2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
exitOnClose
Use EXIT_ON_CLOSE when true, DISPOSE_ON_CLOSE when false on closing of the window.
|
protected org.opentrafficsim.gui.OTSAnimationPanel |
panel
the tabbed panel so other tabs can be added by the classes that extend this class.
|
protected ArrayList<org.opentrafficsim.simulationengine.properties.AbstractProperty<?>> |
properties
The properties exhibited by this simulation.
|
protected ArrayList<org.opentrafficsim.simulationengine.properties.AbstractProperty<?>> |
savedUserModifiedProperties
The properties after (possible) editing by the user.
|
| Constructor and Description |
|---|
AbstractWrappableSimulation() |
| Modifier and Type | Method and Description |
|---|---|
org.opentrafficsim.simulationengine.SimpleAnimator |
buildSimulator(ArrayList<org.opentrafficsim.simulationengine.properties.AbstractProperty<?>> userModifiedProperties,
Rectangle rect,
boolean eoc) |
ArrayList<org.opentrafficsim.simulationengine.properties.AbstractProperty<?>> |
getProperties() |
ArrayList<org.opentrafficsim.simulationengine.properties.AbstractProperty<?>> |
getUserModifiedProperties() |
protected abstract Rectangle2D.Double |
makeAnimationRectangle() |
protected abstract JPanel |
makeCharts() |
protected abstract org.opentrafficsim.core.dsol.OTSModelInterface |
makeModel(org.opentrafficsim.core.gtu.animation.GTUColorer colorer) |
org.opentrafficsim.simulationengine.SimpleSimulation |
rebuildSimulator(Rectangle rect) |
void |
stopTimersThreads() |
protected ArrayList<org.opentrafficsim.simulationengine.properties.AbstractProperty<?>> properties
protected ArrayList<org.opentrafficsim.simulationengine.properties.AbstractProperty<?>> savedUserModifiedProperties
protected boolean exitOnClose
protected org.opentrafficsim.gui.OTSAnimationPanel panel
public final org.opentrafficsim.simulationengine.SimpleAnimator buildSimulator(ArrayList<org.opentrafficsim.simulationengine.properties.AbstractProperty<?>> userModifiedProperties, Rectangle rect, boolean eoc) throws RemoteException, SimRuntimeException, NamingException
buildSimulator in interface org.opentrafficsim.simulationengine.WrappableSimulationRemoteExceptionSimRuntimeExceptionNamingExceptionprotected abstract JPanel makeCharts()
protected abstract org.opentrafficsim.core.dsol.OTSModelInterface makeModel(org.opentrafficsim.core.gtu.animation.GTUColorer colorer)
colorer - the GTU colorer to use.protected abstract Rectangle2D.Double makeAnimationRectangle()
public final ArrayList<org.opentrafficsim.simulationengine.properties.AbstractProperty<?>> getProperties()
getProperties in interface org.opentrafficsim.simulationengine.WrappableSimulationpublic final org.opentrafficsim.simulationengine.SimpleSimulation rebuildSimulator(Rectangle rect) throws SimRuntimeException, RemoteException, org.opentrafficsim.core.network.NetworkException, NamingException
rebuildSimulator in interface org.opentrafficsim.simulationengine.WrappableSimulationSimRuntimeExceptionRemoteExceptionorg.opentrafficsim.core.network.NetworkExceptionNamingExceptionpublic final ArrayList<org.opentrafficsim.simulationengine.properties.AbstractProperty<?>> getUserModifiedProperties()
getUserModifiedProperties in interface org.opentrafficsim.simulationengine.WrappableSimulationpublic void stopTimersThreads()
stopTimersThreads in interface org.opentrafficsim.simulationengine.WrappableSimulationCopyright © 2014–2015 Delft University of Technology. All rights reserved.