View Javadoc
1   package org.opentrafficsim.road.gtu.lane.control;
2   
3   import org.djunits.value.vdouble.scalar.Acceleration;
4   import org.opentrafficsim.base.parameters.Parameters;
5   import org.opentrafficsim.road.gtu.lane.LaneBasedGTU;
6   
7   /**
8    * Longitudinal controller, such as ACC or CACC. The controller is part of a tactical planner and does not function
9    * automatically.
10   * <p>
11   * Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
12   * BSD-style license. See <a href="http://opentrafficsim.org/node/13">OpenTrafficSim License</a>.
13   * <p>
14   * @version $Revision$, $LastChangedDate$, by $Author$, initial version Mar 12, 2019 <br>
15   * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
16   * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
17   * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
18   */
19  public interface LongitudinalControl
20  {
21  
22      /**
23       * Calculate acceleration.
24       * @param gtu LaneBasedGTU; controlled GTU
25       * @param settings Parameters; system settings
26       * @return Acceleration; level of acceleration, may be {@code null} if the controller is unable to deal with a situation
27       */
28      Acceleration getAcceleration(LaneBasedGTU gtu, Parameters settings);
29      
30  }