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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic voidMain program.(package private) voidResponse when settings were changed that affect the shape of the theoretical fundamental diagram, i.e.protected voidsetupDemo(OtsAnimationPanel animationPanel, RoadNetwork net) protected RoadNetworksetupSimulation(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:
 setupSimulationin classAbstractSimulationScript- Throws:
 Exception
 - 
setupDemo
- Overrides:
 setupDemoin classAbstractSimulationScript
 - 
notifyPlotsChanged
void notifyPlotsChanged()Response when settings were changed that affect the shape of the theoretical fundamental diagram, i.e. the FD line. 
 -