Class StraightSwing

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants, org.djunits.unit.util.UNITS

public class StraightSwing extends OtsSimulationApplication<StraightModel> implements org.djunits.unit.util.UNITS
Simplest contour plots demonstration.

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

Author:
Peter Knoppers
See Also:
  • Constructor Details

    • StraightSwing

      public StraightSwing(String title, OtsAnimationPanel panel, StraightModel model) throws org.opentrafficsim.draw.OtsDrawingException
      Create a Straight Swing application.
      Parameters:
      title - String; the title of the Frame
      panel - OtsAnimationPanel; the tabbed panel to display
      model - StraightModel; the model
      Throws:
      org.opentrafficsim.draw.OtsDrawingException - on animation error
  • Method Details

    • addTabs

      protected void addTabs()
      Overrides:
      addTabs in class OtsSimulationApplication<StraightModel>
    • 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
    • addStatisticsTabs

      protected final void addStatisticsTabs(org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator)
      Add the statistics tabs.
      Parameters:
      simulator - OtsSimulatorInterface; the simulator on which sampling can be scheduled