Class OtsSimulationApplication<T extends org.opentrafficsim.core.dsol.OtsModelInterface>

Type Parameters:
T - model type
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
CustomSimulation

public class OtsSimulationApplication<T extends org.opentrafficsim.core.dsol.OtsModelInterface> extends OtsSwingApplication<T>
Extension of a swing application with standard preparation.

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:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
See Also:
  • Constructor Details

    • OtsSimulationApplication

      public OtsSimulationApplication(T model, OtsAnimationPanel panel, Map<org.opentrafficsim.core.gtu.GtuType,org.opentrafficsim.draw.gtu.DefaultCarAnimation.GtuData.GtuMarker> markers)
      Parameters:
      model - model
      panel - animation panel
      markers - GTU type markers
  • Method Details

    • getMarkers

      protected Map<org.opentrafficsim.core.gtu.GtuType,org.opentrafficsim.draw.gtu.DefaultCarAnimation.GtuData.GtuMarker> getMarkers()
      Returns the GTU type markers.
      Returns:
      GTU type markers
    • setAnimationToggles

      protected void setAnimationToggles()
      Set animation toggles. This method is overridable. The default sets standard text toggles.
    • addTabs

      protected void addTabs()
      Adds tabs. This method is overridable. The default does nothing.
    • getAnimationPanel

      public OtsAnimationPanel getAnimationPanel()
      Returns the animation panel.
      Returns:
      animation panel