Class CycleTimeLightController
java.lang.Object
org.opentrafficsim.road.network.control.rampmetering.CycleTimeLightController
- All Implemented Interfaces:
 RampMeteringLightController
Controller using a cycle time.
 
 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
 
- 
Constructor Summary
ConstructorsConstructorDescriptionCycleTimeLightController(OtsSimulatorInterface simulator, List<TrafficLight> trafficLights, DetectorType detectorType)  - 
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()Disables the traffic lights.voidenable(org.djunits.value.vdouble.scalar.Duration cycleTime) Starts the cycle.protected voidsetGreen(TrafficLight trafficLight) Sets the traffic light to green.protected voidsetRed(TrafficLight trafficLight) Sets the traffic light to red. 
- 
Constructor Details
- 
CycleTimeLightController
public CycleTimeLightController(OtsSimulatorInterface simulator, List<TrafficLight> trafficLights, DetectorType detectorType) - Parameters:
 simulator- simulatortrafficLights- traffic lightsdetectorType- detector type.
 
 - 
 - 
Method Details
- 
disable
public void disable()Description copied from interface:RampMeteringLightControllerDisables the traffic lights.- Specified by:
 disablein interfaceRampMeteringLightController
 - 
enable
public void enable(org.djunits.value.vdouble.scalar.Duration cycleTime) Starts the cycle.- Specified by:
 enablein interfaceRampMeteringLightController- Parameters:
 cycleTime- cycle time
 - 
setRed
Sets the traffic light to red. Can be scheduled.- Parameters:
 trafficLight- traffic light
 - 
setGreen
Sets the traffic light to green. Can be scheduled and remembers the green time.- Parameters:
 trafficLight- traffic light
 
 -