Class FactorAdaptation

java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.mental.FactorAdaptation
All Implemented Interfaces:
BehavioralAdaptation
Direct Known Subclasses:
AdaptationHeadway, AdaptationLaneChangeDesire, AdaptationSpeedChannel

public abstract class FactorAdaptation extends Object implements BehavioralAdaptation
Super class for behavioral adaptations using a factor based task saturation. The factor is defined as max(1, 1 + beta * (ts - tsCrit)), where beta is the behavioral adaptation scaling, ts is task saturation, and tsCrit is the critical task saturation. The latter does not need to be specified, in which case a value of 1 is used.

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
  • Constructor Details

    • FactorAdaptation

      public FactorAdaptation()
  • Method Details

    • getFactor

      protected double getFactor(Parameters parameters, ParameterTypeDouble beta) throws ParameterException
      Returns factor for behavioral adaptation. This is given by factor = max(1, 1 + beta * (ts - tsCrit)), where ts is the task saturation and tsCrit is the critical task saturation (assumed 1.0 if not given in the parameters). For behavioral adaptations that reduce something the effective factor can be used as 1.0 / factor.
      Parameters:
      parameters - parameters
      beta - behavioral adaptation scaling parameter, assumed non-negative
      Returns:
      factor for behavioral adaptation
      Throws:
      ParameterException - if a used parameter (other than tsCrit) is not given