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
Copyright (c) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.opentrafficsim.base.parameters.ParameterTypeDoubleGap error gain parameter.static final org.opentrafficsim.base.parameters.ParameterTypeDoubleSpeed error gain parameter.Fields inherited from class org.opentrafficsim.road.gtu.lane.control.AbstractLinearFreeControl
KFFields inherited from class org.opentrafficsim.road.gtu.lane.control.AbstractActuatedControl
TDACC, TDCACC, X0 -
Constructor Summary
ConstructorsConstructorDescriptionLinearAcc(DelayedActuation delayedActuation) Constructor using default sensors with no delay. -
Method Summary
Modifier and TypeMethodDescriptiongetFollowingAcceleration(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.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
-
KS
public static final org.opentrafficsim.base.parameters.ParameterTypeDouble KSGap error gain parameter. -
KV
public static final org.opentrafficsim.base.parameters.ParameterTypeDouble KVSpeed error gain parameter.
-
-
Constructor Details
-
LinearAcc
Constructor using default sensors with no delay.- Parameters:
delayedActuation- DelayedActuation; delayed actuation
-
-
Method Details
-
getFollowingAcceleration
public Acceleration getFollowingAcceleration(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) throws org.opentrafficsim.base.parameters.ParameterExceptionReturns the following acceleration of the longitudinal control. This method is only invoked if there is at least 1 leader.- Specified by:
getFollowingAccelerationin classAbstractLinearFreeControl- Parameters:
gtu- LaneBasedGtu; gtuleaders- PerceptionCollectable<HeadwayGtu, LaneBasedGtu>; leaderssettings- Parameters; system settings- Returns:
- Acceleration; following acceleration of the longitudinal control
- Throws:
org.opentrafficsim.base.parameters.ParameterException- if parameter is not present
-