Class SingleCrossSectionSwitch
- java.lang.Object
-
- org.opentrafficsim.road.network.control.rampmetering.SingleCrossSectionSwitch
-
- All Implemented Interfaces:
RampMeteringSwitch
- Direct Known Subclasses:
AlineaSwitch,RwsSwitch
public abstract class SingleCrossSectionSwitch extends Object implements RampMeteringSwitch
Super class for feed-forward controller. This class contains some helper methods for sub-classes.Copyright (c) 2013-2020 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 May 29, 2019
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Constructor Summary
Constructors Constructor Description SingleCrossSectionSwitch(Duration interval, List<Detector> detectors)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DurationgetInterval()Returns the control interval.protected FrequencymeanFlow()Returns the mean flow over the detectors.protected SpeedmeanSpeed()Returns the mean speed over the detectors.protected FrequencytotalFlow()Returns the total flow over the detectors.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opentrafficsim.road.network.control.rampmetering.RampMeteringSwitch
getCycleTime, isEnabled
-
-
-
-
Method Detail
-
getInterval
public Duration getInterval()
Returns the control interval.- Specified by:
getIntervalin interfaceRampMeteringSwitch- Returns:
- Duration; the control interval
-
meanSpeed
protected final Speed meanSpeed()
Returns the mean speed over the detectors.- Returns:
- Speed; mean speed over the detectors
-
meanFlow
protected final Frequency meanFlow()
Returns the mean flow over the detectors.- Returns:
- Frequency; mean flow over the detectors
-
totalFlow
protected final Frequency totalFlow()
Returns the total flow over the detectors.- Returns:
- Frequency; total flow over the detectors
-
-