Class AlineaSwitch
java.lang.Object
org.opentrafficsim.road.network.control.rampmetering.SingleCrossSectionSwitch
org.opentrafficsim.road.network.control.rampmetering.AlineaSwitch
- All Implemented Interfaces:
RampMeteringSwitch
Switch implementing the ALINEA algorithm.
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
-
Method Summary
Modifier and TypeMethodDescriptionorg.djunits.value.vdouble.scalar.Duration
Returns the cycle time.boolean
Evaluates whether the ramp metering should be enabled.Methods inherited from class org.opentrafficsim.road.network.control.rampmetering.SingleCrossSectionSwitch
getInterval, meanFlow, meanSpeed, totalFlow
-
Constructor Details
-
AlineaSwitch
- Parameters:
detectors
- List<Detector>; detectors
-
-
Method Details
-
isEnabled
public boolean isEnabled()Evaluates whether the ramp metering should be enabled.- Returns:
- boolean; whether the ramp metering should be enabled
-
getCycleTime
public org.djunits.value.vdouble.scalar.Duration getCycleTime()Returns the cycle time.- Returns:
- Duration; the cycle time
-