Class LinearACC
- java.lang.Object
-
- org.opentrafficsim.road.gtu.lane.control.AbstractActuatedControl
-
- org.opentrafficsim.road.gtu.lane.control.AbstractLinearFreeControl
-
- org.opentrafficsim.road.gtu.lane.control.LinearACC
-
- All Implemented Interfaces:
LongitudinalControl
- Direct Known Subclasses:
LinearCACC
,PloegACC
public class LinearACC extends AbstractLinearFreeControl
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 Apr 11, 2019
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Field Summary
Fields Modifier and Type Field Description static ParameterTypeDouble
KS
Gap error gain parameter.static ParameterTypeDouble
KV
Speed 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 LinearACC(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
-
KS
public static final ParameterTypeDouble KS
Gap error gain parameter.
-
KV
public static final ParameterTypeDouble KV
Speed error gain parameter.
-
-
Constructor Detail
-
LinearACC
public LinearACC(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.- Specified by:
getFollowingAcceleration
in classAbstractLinearFreeControl
- 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
-
-