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

public class FundamentalDiagramDemo extends AbstractSimulationScript
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 Details

    • FundamentalDiagramDemo

      public FundamentalDiagramDemo()
      Constructor.
  • Method Details

    • main

      public static void main(String[] args)
      Main program.
      Parameters:
      args - the command line arguments (not used)
    • setupSimulation

      protected org.opentrafficsim.road.network.RoadNetwork setupSimulation(org.opentrafficsim.core.dsol.OtsSimulatorInterface sim) throws Exception
      Specified by:
      setupSimulation in class AbstractSimulationScript
      Throws:
      Exception
    • setupDemo

      protected void setupDemo(OtsAnimationPanel animationPanel, org.opentrafficsim.road.network.RoadNetwork net)
      Overrides:
      setupDemo in class AbstractSimulationScript
    • notifyPlotsChanged

      void notifyPlotsChanged()
      Response when settings were changed that affect the shape of the theoretical fundamental diagram, i.e. the FD line.