Class PloegCACC
java.lang.Object
- All Implemented Interfaces:
LongitudinalControl
public class PloegCACC extends PloegACC
Linear CACC implementation based on derivatives by Jeroen Ploeg.
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 ParameterTypeDouble
KA
Acceleration error gain parameter.Fields inherited from class org.opentrafficsim.road.gtu.lane.control.AbstractActuatedControl
TDACC, TDCACC, X0
-
Constructor Summary
Constructors Constructor Description PloegCACC(DelayedActuation delayedActuation)
Constructor using default sensors with no delay. -
Method Summary
Modifier and Type Method Description Acceleration
getFollowingAcceleration(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
getDesiredAcceleration
Methods inherited from class org.opentrafficsim.road.gtu.lane.control.AbstractActuatedControl
delayActuation, getAcceleration
-
Field Details
-
KA
Acceleration error gain parameter.
-
-
Constructor Details
-
PloegCACC
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:
getFollowingAcceleration
in classPloegACC
- 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
-