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
See Also:
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

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

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

    addTabs, animateNetwork, check, getGtuColorer, getNetwork, getSeed, getSimulationTime, getSimulator, getStartTime, getWarmupTime, isAutorun, notify, onSimulationEnd, setAnimationToggles, setGtuColorer, 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 RoadNetwork setupSimulation(org.opentrafficsim.core.dsol.OtsSimulatorInterface sim) throws NullPointerException, org.djutils.draw.DrawRuntimeException, org.opentrafficsim.core.network.NetworkException, org.opentrafficsim.core.geometry.OtsGeometryException
      Specified by:
      setupSimulation in class org.opentrafficsim.swing.script.AbstractSimulationScript
      Throws:
      NullPointerException
      org.djutils.draw.DrawRuntimeException
      org.opentrafficsim.core.network.NetworkException
      org.opentrafficsim.core.geometry.OtsGeometryException