Class AdaptationHeadway
- java.lang.Object
-
- org.opentrafficsim.road.gtu.lane.perception.mental.AdaptationHeadway
-
- All Implemented Interfaces:
Fuller.BehavioralAdaptation
public class AdaptationHeadway extends Object implements Fuller.BehavioralAdaptation
Behavioral adaptation which increases the desired headway to reduce task-demand.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 3 apr. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Field Summary
Fields Modifier and Type Field Description static ParameterTypeDouble
BETA_T
Parameter for desired headway scaling.
-
Constructor Summary
Constructors Constructor Description AdaptationHeadway()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
adapt(Parameters parameters, double taskSaturation)
Adapt to task saturation by changing parameter values.
-
-
-
Field Detail
-
BETA_T
public static final ParameterTypeDouble BETA_T
Parameter for desired headway scaling.
-
-
Method Detail
-
adapt
public void adapt(Parameters parameters, double taskSaturation) throws ParameterException
Adapt to task saturation by changing parameter values.- Specified by:
adapt
in interfaceFuller.BehavioralAdaptation
- Parameters:
parameters
- Parameters; parameterstaskSaturation
- double; task saturation- Throws:
ParameterException
- if a parameter is missing or out of bounds
-
-