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) throws org.opentrafficsim.draw.OtsDrawingException
      Parameters:
      model - T; model
      panel - OtsAnimationPanel; animation panel
      Throws:
      org.opentrafficsim.draw.OtsDrawingException - on animation error
  • Method Details

    • 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:
      OtsAnimationPanel; animation panel