Class FactorEstimation

java.lang.Object
org.opentrafficsim.road.gtu.perception.mental.FactorEstimation
All Implemented Interfaces:
Supplier<FactorEstimation>, NamedConstants, Stateless<FactorEstimation>, Estimation

public final class FactorEstimation extends Object implements Estimation, Stateless<FactorEstimation>
Estimation using EST_FACTOR as set by the Fuller implementation.

Copyright (c) 2024-2026 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 Details

    • EST_FACTOR

      public static final ParameterTypeDouble EST_FACTOR
      Erroneous estimation factor on distance and speed difference.
    • SINGLETON

      public static final FactorEstimation SINGLETON
      Estimation based on a factor determined by Fuller.
  • Method Details

    • estimate

      public NeighborTriplet estimate(LaneBasedGtu perceivingGtu, LaneBasedObject reference, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance, boolean downstream, org.djunits.value.vdouble.scalar.Duration when) throws ParameterException
      Description copied from interface: Estimation
      Estimate headway, speed and acceleration.
      Specified by:
      estimate in interface Estimation
      Parameters:
      perceivingGtu - perceiving GTU
      reference - reference object, e.g. the perceiving GTU, or a Conflict
      perceivedGtu - perceived GTU
      distance - actual headway at 'now' (i.e. not at 'when' if there is a reaction time)
      downstream - downstream (or upstream) neighbor
      when - moment of perception, reaction time included
      Returns:
      perceived headway, speed and acceleration
      Throws:
      ParameterException - on invalid parameter value or if parameter is not available
    • get

      public FactorEstimation get()
      Specified by:
      get in interface Stateless<FactorEstimation>
      Specified by:
      get in interface Supplier<FactorEstimation>
    • name

      public String name()
      Specified by:
      name in interface NamedConstants