Class StrategiesDemo
java.lang.Object
org.opentrafficsim.swing.script.AbstractSimulationScript
org.opentrafficsim.demo.strategies.StrategiesDemo
- All Implemented Interfaces:
 Serializable,Remote,EventListener,org.djutils.cli.Checkable,org.djutils.event.EventListener
Demo of lane change strategies.
 
 Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.
 
- Author:
 - Wouter Schakel
 - See Also:
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classPerception factory.(package private) classIDM factory with socio speed. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidcreateGtu(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.road.network.RoadNetwork net) Creates a GTU.static voidMain method.protected voidsetupDemo(OtsAnimationPanel animation, org.opentrafficsim.road.network.RoadNetwork network) protected org.opentrafficsim.road.network.RoadNetworksetupSimulation(org.opentrafficsim.core.dsol.OtsSimulatorInterface sim) Methods inherited from class org.opentrafficsim.swing.script.AbstractSimulationScript
addTabs, animateNetwork, check, getGtuColorers, getGtuMarkers, getNetwork, getSeed, getSimulationTime, getSimulator, getStartTime, getWarmupTime, isAutorun, notify, onSimulationEnd, setAnimationToggles, setGtuColorers, start 
- 
Constructor Details
- 
StrategiesDemo
protected StrategiesDemo()Constructor. 
 - 
 - 
Method Details
- 
main
Main method.- Parameters:
 args- arguments
 - 
setupDemo
protected void setupDemo(OtsAnimationPanel animation, org.opentrafficsim.road.network.RoadNetwork network) - Overrides:
 setupDemoin classAbstractSimulationScript
 - 
setupSimulation
protected org.opentrafficsim.road.network.RoadNetwork setupSimulation(org.opentrafficsim.core.dsol.OtsSimulatorInterface sim) throws Exception - Specified by:
 setupSimulationin classAbstractSimulationScript- Throws:
 Exception
 - 
createGtu
public 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.road.network.RoadNetwork net) throws NamingException, org.opentrafficsim.core.gtu.GtuException, org.opentrafficsim.core.network.NetworkException, nl.tudelft.simulation.dsol.SimRuntimeException Creates a GTU.- Parameters:
 lane- lanepos- positiongtuType- GTU typeinitialSpeed- initial speednet- network- Throws:
 NamingException- on exceptionorg.opentrafficsim.core.gtu.GtuException- on exceptionorg.opentrafficsim.core.network.NetworkException- on exceptionnl.tudelft.simulation.dsol.SimRuntimeException- on exception
 
 -