Class CustomSimulation

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class CustomSimulation extends OtsSimulationApplication<CustomSimulation.CustomModel>
Custom simulation uses the custom model class where the network and other simulation aspects are externally specified.

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

See Also:
  • Constructor Details

    • CustomSimulation

      public CustomSimulation(String title, OtsAnimationPanel panel, CustomSimulation.CustomModel model) throws org.opentrafficsim.draw.OtsDrawingException
      Create a custom simulation.
      Parameters:
      title - String; the title of the Frame
      panel - OtsAnimationPanel; the tabbed panel to display
      model - CustomModel; the model
      Throws:
      org.opentrafficsim.draw.OtsDrawingException - on animation error
  • Method Details

    • demo

      public static void demo(boolean exitOnClose, org.opentrafficsim.core.dsol.OtsAnimator simulator, CustomSimulation.CustomModel model)
      Start the simulation.
      Parameters:
      exitOnClose - boolean; when running stand-alone: true; when running as part of a demo: false
      simulator - OtsAnimator; simulator.
      model - CustomModel; model.