Class LinearCACC
java.lang.Object
org.opentrafficsim.road.gtu.lane.control.AbstractActuatedControl
org.opentrafficsim.road.gtu.lane.control.AbstractLinearFreeControl
org.opentrafficsim.road.gtu.lane.control.LinearACC
org.opentrafficsim.road.gtu.lane.control.LinearCACC
- All Implemented Interfaces:
LongitudinalControl
public class LinearCACC extends LinearACC
Simple linear CACC implementation.
Copyright (c) 2013-2020 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 Mar 13, 2019
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Field Summary
Fields Modifier and Type Field Description static ParameterTypeDoubleKAAcceleration error gain parameter.Fields inherited from class org.opentrafficsim.road.gtu.lane.control.AbstractActuatedControl
TDACC, TDCACC, X0 -
Constructor Summary
Constructors Constructor Description LinearCACC(DelayedActuation delayedActuation)Constructor using default sensors with no delay. -
Method Summary
Modifier and Type Method Description AccelerationgetFollowingAcceleration(LaneBasedGTU gtu, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders, Parameters settings)Returns the following acceleration of the longitudinal control.Methods inherited from class org.opentrafficsim.road.gtu.lane.control.AbstractLinearFreeControl
getDesiredAccelerationMethods inherited from class org.opentrafficsim.road.gtu.lane.control.AbstractActuatedControl
delayActuation, getAcceleration
-
Field Details
-
KA
Acceleration error gain parameter.
-
-
Constructor Details
-
LinearCACC
Constructor using default sensors with no delay.- Parameters:
delayedActuation- DelayedActuation; delayed actuation
-
-
Method Details
-
getFollowingAcceleration
public Acceleration getFollowingAcceleration(LaneBasedGTU gtu, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders, Parameters settings) throws ParameterExceptionReturns the following acceleration of the longitudinal control. This method is only invoked if there is at least 1 leader.- Overrides:
getFollowingAccelerationin classLinearACC- Parameters:
gtu- LaneBasedGTU; gtuleaders- PerceptionCollectable<HeadwayGTU, LaneBasedGTU>; leaderssettings- Parameters; system settings- Returns:
- Acceleration; following acceleration of the longitudinal control
- Throws:
ParameterException- if parameter is not present
-