Class DemoTrafcodAndTurbo

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
org.opentrafficsim.swing.gui.OTSSwingApplication<T>
org.opentrafficsim.swing.gui.OTSSimulationApplication<org.opentrafficsim.demo.conflictAndControl.DemoTrafcodAndTurbo.TrafCODModel>
org.opentrafficsim.demo.conflictAndControl.DemoTrafcodAndTurbo
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class DemoTrafcodAndTurbo
extends OTSSimulationApplication<org.opentrafficsim.demo.conflictAndControl.DemoTrafcodAndTurbo.TrafCODModel>

Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Version:
$Revision: 5717 $, $LastChangedDate: 2019-11-14 14:36:06 +0100 (Thu, 14 Nov 2019) $, by $Author: averbraeck $, initial version Dec 06, 2016
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
See Also:
Serialized Form
  • Constructor Details

    • DemoTrafcodAndTurbo

      public DemoTrafcodAndTurbo​(String title, OTSAnimationPanel panel, org.opentrafficsim.demo.conflictAndControl.DemoTrafcodAndTurbo.TrafCODModel model) throws OTSDrawingException
      Create a TrafcodAndTurbo demo.
      Parameters:
      title - String; the title of the Frame
      panel - OTSAnimationPanel; the tabbed panel to display
      model - TrafCODModel; the model
      Throws:
      OTSDrawingException - on animation error
  • Method Details

    • main

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

      public static void demo​(boolean exitOnClose)
      Start the demo.
      Parameters:
      exitOnClose - boolean; when running stand-alone: true; when running as part of a demo: false
    • addTabs

      protected void addTabs()
      Add tab with trafCOD status.
      Overrides:
      addTabs in class OTSSimulationApplication<org.opentrafficsim.demo.conflictAndControl.DemoTrafcodAndTurbo.TrafCODModel>