Class StraightSwing

  • 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 StraightSwing
    extends OTSSimulationApplication<StraightModel>
    implements UNITS
    Simplest contour plots demonstration.

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

    $LastChangedDate: 2019-01-06 01:35:05 +0100 (Sun, 06 Jan 2019) $, @version $Revision: 4831 $, by $Author: averbraeck $, initial version 12 nov. 2014

    Author:
    Peter Knoppers
    See Also:
    Serialized Form
    • Constructor Detail

      • StraightSwing

        public StraightSwing​(java.lang.String title,
                             OTSAnimationPanel panel,
                             StraightModel model)
                      throws 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:
        OTSDrawingException - on animation error
    • Method Detail

      • 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