Package org.opentrafficsim.demo.fd
Class FundamentalDiagramDemo
- java.lang.Object
-
- org.opentrafficsim.swing.script.AbstractSimulationScript
-
- org.opentrafficsim.demo.fd.FundamentalDiagramDemo
-
- All Implemented Interfaces:
Serializable
,EventListener
,Checkable
,EventListenerInterface
public class FundamentalDiagramDemo extends AbstractSimulationScript
Demo showing what fundamental diagrams are. This demo is for education purposes.Copyright (c) 2020-2020 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
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FundamentalDiagramDemo()
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Main program.protected void
setupDemo(OTSAnimationPanel animationPanel, OTSRoadNetwork net)
protected OTSRoadNetwork
setupSimulation(OTSSimulatorInterface sim)
-
Methods inherited from class org.opentrafficsim.swing.script.AbstractSimulationScript
addTabs, animateNetwork, check, getGtuColorer, getNetwork, getSeed, getSimulationTime, getSimulator, getStartTime, getWarmupTime, isAutorun, notify, onSimulationEnd, setAnimationToggles, setGtuColorer, start
-
-
-
-
Method Detail
-
main
public static void main(String[] args)
Main program.- Parameters:
args
- String[]; the command line arguments (not used)
-
setupSimulation
protected OTSRoadNetwork setupSimulation(OTSSimulatorInterface sim) throws Exception
- Specified by:
setupSimulation
in classAbstractSimulationScript
- Throws:
Exception
-
setupDemo
protected void setupDemo(OTSAnimationPanel animationPanel, OTSRoadNetwork net)
- Overrides:
setupDemo
in classAbstractSimulationScript
-
-