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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opentrafficsim.road.gtu.lane.perception.categories.neighbors.Estimation
Estimation.FactorEstimation -
Field Summary
Fields inherited from interface org.opentrafficsim.road.gtu.lane.perception.categories.neighbors.Estimation
NONE, OVERESTIMATION, UNDERESTIMATION -
Method Summary
Modifier and Type Method Description NeighborTripletestimate(LaneBasedGTU perceivingGtu, LaneBasedGTU perceivedGtu, Length distance, boolean downstream, Time when)Estimate headway, speed and acceleration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opentrafficsim.road.gtu.lane.perception.categories.neighbors.Estimation
getDelayedHeadway, getDelayedSpeedDifference, getEgoSpeed
-
Method Details
-
estimate
public NeighborTriplet estimate(LaneBasedGTU perceivingGtu, LaneBasedGTU perceivedGtu, Length distance, boolean downstream, Time when) throws ParameterExceptionEstimate headway, speed and acceleration.- Specified by:
estimatein interfaceEstimation- Parameters:
perceivingGtu- LaneBasedGTU; perceiving GTUperceivedGtu- LaneBasedGTU; perceived GTUdistance- Length; actual headway at 'now' (i.e. not at 'when' if there is a reaction time)downstream- boolean; downstream (or upstream) neighborwhen- 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
-