Class RwsSwitch

java.lang.Object
org.opentrafficsim.road.network.control.rampmetering.SingleCrossSectionSwitch
org.opentrafficsim.road.network.control.rampmetering.RwsSwitch
All Implemented Interfaces:
RampMeteringSwitch

public class RwsSwitch
extends SingleCrossSectionSwitch
Switch implementing the RWS algorithm.

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 12 jun. 2019
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Constructor Summary

    Constructors 
    Constructor Description
    RwsSwitch​(java.util.List<Detector> detectors)  
  • Method Summary

    Modifier and Type Method Description
    Duration getCycleTime()
    Returns the cycle time.
    boolean isEnabled()
    Evaluates whether the ramp metering should be enabled.

    Methods inherited from class org.opentrafficsim.road.network.control.rampmetering.SingleCrossSectionSwitch

    getInterval, meanFlow, meanSpeed, totalFlow

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RwsSwitch

      public RwsSwitch​(java.util.List<Detector> detectors)
      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 Duration getCycleTime()
      Returns the cycle time.
      Returns:
      Duration; the cycle time