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 -
Method Summary
Modifier and TypeMethodDescriptionstatic void
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
-
Constructor Details
-
SimpleSimulation
protected SimpleSimulation()
-
-
Method Details
-
main
- 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 classorg.opentrafficsim.swing.script.AbstractSimulationScript
- Throws:
NullPointerException
org.djutils.draw.DrawRuntimeException
org.opentrafficsim.core.network.NetworkException
-