Package org.opentrafficsim.demo.fd
Class FundamentalDiagramDemo
java.lang.Object
org.opentrafficsim.swing.script.AbstractSimulationScript
org.opentrafficsim.demo.fd.FundamentalDiagramDemo
- All Implemented Interfaces:
Serializable
,Remote
,EventListener
,org.djutils.cli.Checkable
,org.djutils.event.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
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Main program.(package private) void
Response when settings were changed that affect the shape of the theoretical fundamental diagram, i.e. the FD line.protected void
setupDemo
(OtsAnimationPanel animationPanel, RoadNetwork net) protected RoadNetwork
setupSimulation
(org.opentrafficsim.core.dsol.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
-
Constructor Details
-
FundamentalDiagramDemo
public FundamentalDiagramDemo()Constructor.
-
-
Method Details
-
main
Main program.- Parameters:
args
- String[]; the command line arguments (not used)
-
setupSimulation
protected RoadNetwork setupSimulation(org.opentrafficsim.core.dsol.OtsSimulatorInterface sim) throws Exception - Specified by:
setupSimulation
in classAbstractSimulationScript
- Throws:
Exception
-
setupDemo
- Overrides:
setupDemo
in classAbstractSimulationScript
-
notifyPlotsChanged
void notifyPlotsChanged()Response when settings were changed that affect the shape of the theoretical fundamental diagram, i.e. the FD line.
-