public class StrategiesDemo extends AbstractSimulationScript
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
animationPanel| Modifier | Constructor and Description |
|---|---|
protected |
StrategiesDemo(String[] properties)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createGtu(Lane lane,
Length pos,
GTUType gtuType,
Speed initialSpeed,
OTSNetwork net)
Creates a GTU.
|
static void |
main(String[] args)
Main method.
|
protected void |
setDefaultProperties() |
protected void |
setupDemo(OTSAnimationPanel animation,
OTSNetwork net) |
protected OTSNetwork |
setupSimulation(OTSSimulatorInterface sim) |
addAnimationToggles, addTabs, animateNetwork, getBooleanProperty, getDoubleProperty, getDurationProperty, getGtuColorer, getIntegerProperty, getLongProperty, getNetwork, getProperty, getSimulator, getTimeProperty, notify, onSimulationEnd, setGtuColorer, setProperty, startprotected StrategiesDemo(String[] properties)
properties - String[]; propertiespublic static void main(String[] args)
args - String[]; argumentsprotected void setDefaultProperties()
setDefaultProperties in class AbstractSimulationScriptprotected void setupDemo(OTSAnimationPanel animation, OTSNetwork net)
setupDemo in class AbstractSimulationScriptprotected OTSNetwork setupSimulation(OTSSimulatorInterface sim) throws Exception
setupSimulation in class AbstractSimulationScriptExceptionpublic void createGtu(Lane lane, Length pos, GTUType gtuType, Speed initialSpeed, OTSNetwork net) throws NamingException, GTUException, NetworkException, SimRuntimeException, OTSGeometryException
lane - Lane; lanepos - Length; positiongtuType - GTUType; GTU typeinitialSpeed - Speed; initial speednet - OTSNetwork; networkNamingException - on exceptionGTUException - on exceptionNetworkException - on exceptionSimRuntimeException - on exceptionOTSGeometryException - on exceptionCopyright © 2014–2019 Delft University of Technology. All rights reserved.