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