Class SimpleSimulation

java.lang.Object
org.opentrafficsim.swing.script.AbstractSimulationScript
org.opentrafficsim.demo.doc.tutorials.SimpleSimulation
All Implemented Interfaces:
Serializable, Remote, EventListener, org.djutils.cli.Checkable, org.djutils.event.EventListener

public class SimpleSimulation extends org.opentrafficsim.swing.script.AbstractSimulationScript
This class contains code snippets that are used in the documentation. Whenever errors arise in this code, they need to be fixed -and- the code in the documentation needs to be updated.

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.

Author:
Wouter Schakel
See Also:
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
     
    protected org.opentrafficsim.road.network.RoadNetwork
    setupSimulation(org.opentrafficsim.core.dsol.OtsSimulatorInterface sim)
     

    Methods inherited from class org.opentrafficsim.swing.script.AbstractSimulationScript

    addTabs, animateNetwork, check, getGtuColorers, getGtuMarkers, getNetwork, getSeed, getSimulationTime, getSimulator, getStartTime, getWarmupTime, isAutorun, notify, onSimulationEnd, setAnimationToggles, setGtuColorers, setupDemo, start

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SimpleSimulation

      protected SimpleSimulation()
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • setupSimulation

      protected org.opentrafficsim.road.network.RoadNetwork setupSimulation(org.opentrafficsim.core.dsol.OtsSimulatorInterface sim) throws NullPointerException, org.djutils.draw.DrawRuntimeException, org.opentrafficsim.core.network.NetworkException
      Specified by:
      setupSimulation in class org.opentrafficsim.swing.script.AbstractSimulationScript
      Throws:
      NullPointerException
      org.djutils.draw.DrawRuntimeException
      org.opentrafficsim.core.network.NetworkException