Package org.opentrafficsim.demo
Class RampMeteringDemo
- java.lang.Object
-
- org.opentrafficsim.swing.script.AbstractSimulationScript
-
- org.opentrafficsim.demo.RampMeteringDemo
-
- All Implemented Interfaces:
Serializable,EventListener,Checkable,EventListenerInterface
public class RampMeteringDemo extends AbstractSimulationScript
Copyright (c) 2013-2022 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 12 jun. 2019
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRampMeteringDemo()Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)voidnotify(EventInterface event)protected voidonSimulationEnd()protected OTSRoadNetworksetupSimulation(OTSSimulatorInterface sim)-
Methods inherited from class org.opentrafficsim.swing.script.AbstractSimulationScript
addTabs, animateNetwork, check, getGtuColorer, getNetwork, getSeed, getSimulationTime, getSimulator, getStartTime, getWarmupTime, isAutorun, setAnimationToggles, setGtuColorer, setupDemo, start
-
-
-
-
Method Detail
-
main
public static void main(String[] args) throws Exception
- Parameters:
args- String[] command line arguments- Throws:
Exception- any exception
-
setupSimulation
protected OTSRoadNetwork setupSimulation(OTSSimulatorInterface sim) throws Exception
- Specified by:
setupSimulationin classAbstractSimulationScript- Throws:
Exception
-
notify
public void notify(EventInterface event) throws RemoteException
- Specified by:
notifyin interfaceEventListenerInterface- Overrides:
notifyin classAbstractSimulationScript- Throws:
RemoteException
-
onSimulationEnd
protected void onSimulationEnd()
- Overrides:
onSimulationEndin classAbstractSimulationScript
-
-