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