Package org.opentrafficsim.demo.cacc
Class CaccSimulation
- java.lang.Object
-
- org.opentrafficsim.swing.script.AbstractSimulationScript
-
- org.opentrafficsim.demo.cacc.CaccSimulation
-
- All Implemented Interfaces:
Serializable
,EventListener
,Checkable
,EventListenerInterface
public class CaccSimulation extends AbstractSimulationScript implements Checkable
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 17 okt. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CaccSimulation(String[] properties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addTabs(OTSSimulatorInterface sim, OTSSimulationApplication<?> animation)
static void
main(String[] args)
Main method that creates and starts a simulation.protected void
onSimulationEnd()
protected OTSRoadNetwork
setupSimulation(OTSSimulatorInterface sim)
-
Methods inherited from class org.opentrafficsim.swing.script.AbstractSimulationScript
animateNetwork, check, getGtuColorer, getNetwork, getSeed, getSimulationTime, getSimulator, getStartTime, getWarmupTime, isAutorun, notify, setAnimationToggles, setGtuColorer, setupDemo, start
-
-
-
-
Constructor Detail
-
CaccSimulation
protected CaccSimulation(String[] properties) throws NoSuchFieldException, CliException
- Parameters:
properties
- x- Throws:
CliException
- xNoSuchFieldException
- x
-
-
Method Detail
-
main
public static void main(String[] args) throws Exception
Main method that creates and starts a simulation.- Parameters:
args
- String[]; command line arguments- Throws:
Exception
- ...
-
setupSimulation
protected OTSRoadNetwork setupSimulation(OTSSimulatorInterface sim) throws Exception
- Specified by:
setupSimulation
in classAbstractSimulationScript
- Throws:
Exception
-
addTabs
protected void addTabs(OTSSimulatorInterface sim, OTSSimulationApplication<?> animation)
- Overrides:
addTabs
in classAbstractSimulationScript
-
onSimulationEnd
protected void onSimulationEnd()
- Overrides:
onSimulationEnd
in classAbstractSimulationScript
-
-