public class StrategiesDemo
extends org.opentrafficsim.road.animation.AbstractSimulationScript
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
StrategiesDemo.LmrsStrategiesPerceptionFactory
Perception factory.
|
(package private) class |
StrategiesDemo.SocioIDMFactory
IDM factory with socio speed.
|
| Modifier | Constructor and Description |
|---|---|
protected |
StrategiesDemo(String[] properties)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createGtu(org.opentrafficsim.road.network.lane.Lane lane,
org.djunits.value.vdouble.scalar.Length pos,
org.opentrafficsim.core.gtu.GTUType gtuType,
org.djunits.value.vdouble.scalar.Speed initialSpeed,
org.opentrafficsim.core.network.OTSNetwork net)
Creates a GTU.
|
static void |
main(String[] args)
Main method.
|
protected void |
setDefaultProperties() |
protected void |
setupDemo(org.opentrafficsim.simulationengine.AbstractWrappableAnimation animation,
org.opentrafficsim.core.network.OTSNetwork net) |
protected org.opentrafficsim.core.network.OTSNetwork |
setupSimulation(nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit sim) |
addAnimationToggles, addTabs, animateNetwork, getBooleanProperty, getDoubleProperty, getDurationProperty, getGtuColorer, getIntegerProperty, 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 org.opentrafficsim.road.animation.AbstractSimulationScriptprotected void setupDemo(org.opentrafficsim.simulationengine.AbstractWrappableAnimation animation,
org.opentrafficsim.core.network.OTSNetwork net)
setupDemo in class org.opentrafficsim.road.animation.AbstractSimulationScriptprotected org.opentrafficsim.core.network.OTSNetwork setupSimulation(nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit sim)
throws Exception
setupSimulation in class org.opentrafficsim.road.animation.AbstractSimulationScriptExceptionpublic void createGtu(org.opentrafficsim.road.network.lane.Lane lane,
org.djunits.value.vdouble.scalar.Length pos,
org.opentrafficsim.core.gtu.GTUType gtuType,
org.djunits.value.vdouble.scalar.Speed initialSpeed,
org.opentrafficsim.core.network.OTSNetwork net)
throws NamingException,
org.opentrafficsim.core.gtu.GTUException,
org.opentrafficsim.core.network.NetworkException,
nl.tudelft.simulation.dsol.SimRuntimeException,
org.opentrafficsim.core.geometry.OTSGeometryException
lane - Lane; lanepos - Length; positiongtuType - GTUType; GTU typeinitialSpeed - Speed; initial speednet - OTSNetwork; networkNamingException - on exceptionorg.opentrafficsim.core.gtu.GTUException - on exceptionorg.opentrafficsim.core.network.NetworkException - on exceptionnl.tudelft.simulation.dsol.SimRuntimeException - on exceptionorg.opentrafficsim.core.geometry.OTSGeometryException - on exceptionCopyright © 2014–2018 Delft University of Technology. All rights reserved.