Package org.opentrafficsim.demo
Class RampMeteringDemo
java.lang.Object
org.opentrafficsim.swing.script.AbstractSimulationScript
org.opentrafficsim.demo.RampMeteringDemo
- All Implemented Interfaces:
Serializable
,Remote
,EventListener
,org.djutils.cli.Checkable
,org.djutils.event.EventListener
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) final org.opentrafficsim.core.parameters.ParameterFactoryByType
Returns the parameter factory.static void
void
notify
(org.djutils.event.Event event) protected 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, setAnimationToggles, setGtuColorer, setupDemo, start
-
Constructor Details
-
RampMeteringDemo
protected RampMeteringDemo()Constructor.
-
-
Method Details
-
main
- Parameters:
args
- String[] command line arguments- Throws:
Exception
- any exception
-
setupSimulation
protected RoadNetwork setupSimulation(org.opentrafficsim.core.dsol.OtsSimulatorInterface sim) throws Exception - Specified by:
setupSimulation
in classAbstractSimulationScript
- Throws:
Exception
-
getParameterFactory
final org.opentrafficsim.core.parameters.ParameterFactoryByType getParameterFactory()Returns the parameter factory.- Returns:
- ParameterFactoryByType; parameter factory
-
notify
- Specified by:
notify
in interfaceorg.djutils.event.EventListener
- Overrides:
notify
in classAbstractSimulationScript
- Throws:
RemoteException
-
onSimulationEnd
protected void onSimulationEnd()- Overrides:
onSimulationEnd
in classAbstractSimulationScript
-