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 ParameterTypeDouble
KA
Acceleration error gain parameter.-
Fields inherited from class org.opentrafficsim.road.gtu.lane.control.AbstractLinearFreeControl
KF
-
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
All Methods Instance Methods Concrete Methods 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 Detail
-
KA
public static final ParameterTypeDouble KA
Acceleration error gain parameter.
-
-
Constructor Detail
-
LinearCACC
public LinearCACC(DelayedActuation delayedActuation)
Constructor using default sensors with no delay.- Parameters:
delayedActuation
- DelayedActuation; delayed actuation
-
-
Method Detail
-
getFollowingAcceleration
public Acceleration getFollowingAcceleration(LaneBasedGTU gtu, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders, Parameters settings) throws ParameterException
Returns the following acceleration of the longitudinal control. This method is only invoked if there is at least 1 leader.- Overrides:
getFollowingAcceleration
in 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
-
-