Class Estimation.FactorEstimation

java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.categories.neighbors.Estimation.FactorEstimation
All Implemented Interfaces:
Estimation
Enclosing interface:
Estimation

public abstract static class Estimation.FactorEstimation
extends Object
implements Estimation
Estimation based on a factor.

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 31 jan. 2019
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Method Details

    • estimate

      public NeighborTriplet estimate​(LaneBasedGTU perceivingGtu, LaneBasedGTU perceivedGtu, Length distance, boolean downstream, Time when) throws ParameterException
      Estimate headway, speed and acceleration.
      Specified by:
      estimate in interface Estimation
      Parameters:
      perceivingGtu - LaneBasedGTU; perceiving GTU
      perceivedGtu - LaneBasedGTU; perceived GTU
      distance - Length; actual headway at 'now' (i.e. not at 'when' if there is a reaction time)
      downstream - boolean; downstream (or upstream) neighbor
      when - Time; moment of perception, reaction time included
      Returns:
      NeighborTriplet; perceived headway, speed and acceleration
      Throws:
      ParameterException - on invalid parameter value or if parameter is not available