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-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br> 12 * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>. 13 * </p> 14 * @author <a href="https://github.com/averbraeck">Alexander Verbraeck</a> 15 * @author <a href="https://tudelft.nl/staff/p.knoppers-1">Peter Knoppers</a> 16 * @author <a href="https://github.com/wjschakel">Wouter Schakel</a> 17 */ 18 public interface LongitudinalControl 19 { 20 21 /** 22 * Calculate acceleration. 23 * @param gtu LaneBasedGtu; controlled GTU 24 * @param settings Parameters; system settings 25 * @return Acceleration; level of acceleration, may be {@code null} if the controller is unable to deal with a situation 26 */ 27 Acceleration getAcceleration(LaneBasedGtu gtu, Parameters settings); 28 29 }