View Javadoc
1   package org.opentrafficsim.road.network.control.rampmetering;
2   
3   import org.djunits.value.vdouble.scalar.Duration;
4   
5   /**
6    * Determines whether the controller should be on or off.
7    * <p>
8    * Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
9    * BSD-style license. See <a href="http://opentrafficsim.org/node/13">OpenTrafficSim License</a>.
10   * <p>
11   * @version $Revision$, $LastChangedDate$, by $Author$, initial version May 29, 2019 <br>
12   * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
13   * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
14   * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
15   */
16  public interface RampMeteringSwitch
17  {
18      
19      /**
20       * Returns the control interval.
21       * @return Duration; the control interval
22       */
23      Duration getInterval();
24      
25      /**
26       * Evaluates whether the ramp metering should be enabled.
27       * @return boolean; whether the ramp metering should be enabled
28       */
29      boolean isEnabled();
30      
31      /**
32       * Returns the cycle time.
33       * @return Duration; the cycle time
34       */
35      Duration getCycleTime();
36  
37  }