Class AdaptationLaneChangeDesire
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.mental.FactorAdaptation
org.opentrafficsim.road.gtu.lane.perception.mental.AdaptationLaneChangeDesire
- All Implemented Interfaces:
Supplier<AdaptationLaneChangeDesire>,Stateless<AdaptationLaneChangeDesire>,BehavioralAdaptation
public final class AdaptationLaneChangeDesire
extends FactorAdaptation
implements Stateless<AdaptationLaneChangeDesire>
Reduces the voluntary lane change desire as behavioral adaptation by setting lambda_v (applied by the LMRS on voluntary lane
change desire). The equation is lambda_v = min(1, 1/(1+Beta_d*(TS-1))).
Copyright (c) 2024-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Wouter Schakel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParameterTypeDoubleParameter for desired speed scaling.static final AdaptationLaneChangeDesireSingleton instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidadapt(Parameters parameters) Adapt to task saturation by changing parameter values.get()Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.mental.FactorAdaptation
getFactor
-
Field Details
-
BETA_D
Parameter for desired speed scaling. -
SINGLETON
Singleton instance.
-
-
Method Details
-
adapt
Description copied from interface:BehavioralAdaptationAdapt to task saturation by changing parameter values.- Specified by:
adaptin interfaceBehavioralAdaptation- Parameters:
parameters- parameters- Throws:
ParameterException- if a parameter is missing or out of bounds
-
get
- Specified by:
getin interfaceStateless<AdaptationLaneChangeDesire>- Specified by:
getin interfaceSupplier<AdaptationLaneChangeDesire>
-