Class SequentialLanes

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.SequentialLanes.SequentialModel>
org.opentrafficsim.demo.SequentialLanes
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants, UNITS

public class SequentialLanes
extends OTSSimulationApplication<org.opentrafficsim.demo.SequentialLanes.SequentialModel>
implements UNITS
Single lane road consisting of three consecutive links.
Tests that GTUs correctly transfer themselves onto the next lane and that the graph samplers handle this situation.

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.

$LastChangedDate: 2019-11-14 14:36:06 +0100 (Thu, 14 Nov 2019) $, @version $Revision: 5717 $, by $Author: averbraeck $, initial version 30 jan. 2015

Author:
Alexander Verbraeck, Peter Knoppers
See Also:
Serialized Form
  • Constructor Details

    • SequentialLanes

      public SequentialLanes​(java.lang.String title, OTSAnimationPanel panel, org.opentrafficsim.demo.SequentialLanes.SequentialModel model) throws OTSDrawingException
      Create a Straight Swing application.
      Parameters:
      title - String; the title of the Frame
      panel - OTSAnimationPanel; the tabbed panel to display
      model - SequentialModel; the model
      Throws:
      OTSDrawingException - on animation error
  • Method Details

    • addTabs

      protected void addTabs()
      Overrides:
      addTabs in class OTSSimulationApplication<org.opentrafficsim.demo.SequentialLanes.SequentialModel>
    • main

      public static void main​(java.lang.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
    • addStatisticsTabs

      protected final void addStatisticsTabs​(OTSSimulatorInterface simulator)
      Add the statistics tabs.
      Parameters:
      simulator - OTSSimulatorInterface; the simulator on which sampling can be scheduled