Package org.opentrafficsim.demo.fd
Class FundamentalDiagramDemo
java.lang.Object
org.opentrafficsim.swing.script.AbstractSimulationScript
org.opentrafficsim.demo.fd.FundamentalDiagramDemo
- All Implemented Interfaces:
EventListener,Checkable,EventListener
Demo showing what fundamental diagrams are. This demo is for education purposes.
Copyright (c) 2020-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidMain program.protected voidsetupDemo(OtsAnimationPanel animationPanel, RoadNetwork net) protected RoadNetworkMethods 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
-
FundamentalDiagramDemo
public FundamentalDiagramDemo()Constructor.
-
-
Method Details
-
main
Main program.- Parameters:
args- the command line arguments (not used)
-
setupSimulation
- Specified by:
setupSimulationin classAbstractSimulationScript- Throws:
Exception
-
setupDemo
- Overrides:
setupDemoin classAbstractSimulationScript
-