Interface Estimation
-
- All Known Implementing Classes:
Estimation.FactorEstimation
@Deprecated public interface Estimation
Deprecated.Estimation of neighbor headway, speed and acceleration.
XXX: Looking into the neighbor's internal state? Time 'when' necessary?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 6 apr. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classEstimation.FactorEstimationDeprecated.Estimation based on a factor.
-
Field Summary
Fields Modifier and Type Field Description static EstimationNONEDeprecated.No estimation errors.static EstimationOVERESTIMATIONDeprecated.OVerestimation based on situational awareness.static EstimationUNDERESTIMATIONDeprecated.Underestimation based on situational awareness.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description NeighborTripletestimate(InternalLaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, Length distance, boolean downstream, Time when)Deprecated.Estimate headway, speed and acceleration.default LengthgetDelayedHeadway(InternalLaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, Length distance, boolean downstream, Time when)Deprecated.Returns a delayed headway.default SpeedgetDelayedSpeedDifference(InternalLaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, Time when)Deprecated.Returns a delayed speed difference (other minus ego).default SpeedgetEgoSpeed(InternalLaneBasedGtu perceivingGtu)Deprecated.Returns the ego speed.
-
-
-
Field Detail
-
NONE
static final Estimation NONE
Deprecated.No estimation errors.
-
UNDERESTIMATION
static final Estimation UNDERESTIMATION
Deprecated.Underestimation based on situational awareness.
-
OVERESTIMATION
static final Estimation OVERESTIMATION
Deprecated.OVerestimation based on situational awareness.
-
-
Method Detail
-
estimate
NeighborTriplet estimate(InternalLaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, Length distance, boolean downstream, Time when) throws ParameterException
Deprecated.Estimate headway, speed and acceleration.- Parameters:
perceivingGtu- InternalLaneBasedGtu; 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
-
getDelayedHeadway
default Length getDelayedHeadway(InternalLaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, Length distance, boolean downstream, Time when)
Deprecated.Returns a delayed headway.- Parameters:
perceivingGtu- InternalLaneBasedGtu; 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:
- Length; delayed headway
-
getEgoSpeed
default Speed getEgoSpeed(InternalLaneBasedGtu perceivingGtu)
Deprecated.Returns the ego speed. This is the speed used in AbstractLaneBasedGTU.getCarFollowingAcceleration(), and hence this is the reference speed for the stimulus of speed difference.- Parameters:
perceivingGtu- InternalLaneBasedGtu; perceiving GTU- Returns:
- Speed; ego speed
-
getDelayedSpeedDifference
default Speed getDelayedSpeedDifference(InternalLaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, Time when)
Deprecated.Returns a delayed speed difference (other minus ego).- Parameters:
perceivingGtu- InternalLaneBasedGtu; perceiving GTUperceivedGtu- LaneBasedGtu; perceived GTUwhen- Time; moment of perception, reaction time included- Returns:
- Speed; delayed speed difference (other minus ego)
-
-