Class FactorEstimation
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.mental.FactorEstimation
- All Implemented Interfaces:
Supplier<FactorEstimation>,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-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 ParameterTypeDoubleErroneous estimation factor on distance and speed difference.static final FactorEstimationEstimation based on a factor determined by Fuller.Fields inherited from interface org.opentrafficsim.road.gtu.lane.perception.categories.neighbors.Estimation
NONE -
Method Summary
Modifier and TypeMethodDescriptionestimate(LaneBasedGtu perceivingGtu, LaneBasedObject reference, LaneBasedGtu perceivedGtu, Length distance, boolean downstream, Duration when) Estimate headway, speed and acceleration.get()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opentrafficsim.road.gtu.lane.perception.categories.neighbors.Estimation
getDelayedDistance, getDelayedReferenceSpeed, getDelayedSpeedDifference
-
Field Details
-
EST_FACTOR
Erroneous estimation factor on distance and speed difference. -
SINGLETON
Estimation based on a factor determined by Fuller.
-
-
Method Details
-
estimate
public NeighborTriplet estimate(LaneBasedGtu perceivingGtu, LaneBasedObject reference, LaneBasedGtu perceivedGtu, Length distance, boolean downstream, Duration when) throws ParameterException Description copied from interface:EstimationEstimate headway, speed and acceleration.- Specified by:
estimatein interfaceEstimation- Parameters:
perceivingGtu- perceiving GTUreference- reference object, e.g. the perceiving GTU, or a ConflictperceivedGtu- perceived GTUdistance- actual headway at 'now' (i.e. not at 'when' if there is a reaction time)downstream- downstream (or upstream) neighborwhen- 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
- Specified by:
getin interfaceStateless<FactorEstimation>- Specified by:
getin interfaceSupplier<FactorEstimation>
-
toString
-