Class AlineaSwitch

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

public class AlineaSwitch
extends SingleCrossSectionSwitch
Switch implementing the ALINEA algorithm.

Copyright (c) 2013-2019 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 13 jun. 2019
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Constructor Details

  • 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