Package org.opentrafficsim.ahfe
Class DelayedNeighborsPerception
- java.lang.Object
-
- org.opentrafficsim.base.Type<AbstractPerceptionCategory<G,P>>
-
- org.opentrafficsim.core.gtu.perception.AbstractPerceptionCategory<LaneBasedGTU,LanePerception>
-
- org.opentrafficsim.road.gtu.lane.perception.categories.LaneBasedAbstractPerceptionCategory
-
- org.opentrafficsim.ahfe.AbstractDelayedPerceptionCategory
-
- org.opentrafficsim.ahfe.AbstractDelayedNeighborsPerception
-
- org.opentrafficsim.ahfe.DelayedNeighborsPerception
-
- All Implemented Interfaces:
Serializable,EventListener,EventListenerInterface,PerceptionCategory<LaneBasedGTU,LanePerception>,LaneBasedPerceptionCategory,NeighborsPerception
@Deprecated public class DelayedNeighborsPerception extends AbstractDelayedNeighborsPerception implements EventListenerInterface
Deprecated.Implementation of delayed neighbors perception which anticipates using constant speed.Copyright (c) 2013-2022 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 17 feb. 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opentrafficsim.ahfe.AbstractDelayedNeighborsPerception
AbstractDelayedNeighborsPerception.NeighborsInfoType<T>
-
Nested classes/interfaces inherited from class org.opentrafficsim.ahfe.AbstractDelayedPerceptionCategory
AbstractDelayedPerceptionCategory.DelayedInfoType<T>
-
-
Field Summary
Fields Modifier and Type Field Description static ParameterTypeDoubleAERRORDeprecated.Parameter for acceleration error factor.static ParameterTypeDoubleSERRORDeprecated.Parameter for distance error factor.static ParameterTypeDurationTADeprecated.Parameter for anticipating beyond current time.static ParameterTypeDurationTAUEDeprecated.Parameter for correlation in errors.static ParameterTypeDoubleVERRORDeprecated.Parameter for speed error factor.-
Fields inherited from class org.opentrafficsim.ahfe.AbstractDelayedNeighborsPerception
CROSSSECTION, DT, FIRSTFOLLOWERS, FIRSTLEADERS, FOLLOWERS, GTUALONGSIDE, LEADERS, ODOMETER, TR
-
Fields inherited from class org.opentrafficsim.road.gtu.lane.perception.categories.LaneBasedAbstractPerceptionCategory
MAX_RED_DECELERATION, MAX_YELLOW_DECELERATION
-
-
Constructor Summary
Constructors Constructor Description DelayedNeighborsPerception(LanePerception perception, Anticipation anticipation)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SortedSet<HeadwayGTU>getFirstFollowers(LateralDirectionality lat)Deprecated.SortedSet<HeadwayGTU>getFirstLeaders(LateralDirectionality lat)Deprecated.PerceptionCollectable<HeadwayGTU,LaneBasedGTU>getFollowers(RelativeLane lane)Deprecated.PerceptionCollectable<HeadwayGTU,LaneBasedGTU>getLeaders(RelativeLane lane)Deprecated.booleanisGtuAlongside(LateralDirectionality lat)Deprecated.voidnotify(EventInterface event)Deprecated.StringtoString()Deprecated.-
Methods inherited from class org.opentrafficsim.ahfe.AbstractDelayedNeighborsPerception
getDelayedCrossSection, isGtuAlongsideOverride, updateAll, updateAllDelayed
-
Methods inherited from class org.opentrafficsim.ahfe.AbstractDelayedPerceptionCategory
changeLane, getInfo, getInfo, setInfo, setInfo
-
Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.categories.LaneBasedAbstractPerceptionCategory
computeIfAbsent, computeIfAbsent, computeIfAbsent
-
Methods inherited from class org.opentrafficsim.core.gtu.perception.AbstractPerceptionCategory
getGtu, getObjectOrNull, getPerception, getTimestamp
-
-
-
-
Field Detail
-
TA
public static final ParameterTypeDuration TA
Deprecated.Parameter for anticipating beyond current time.
-
TAUE
public static final ParameterTypeDuration TAUE
Deprecated.Parameter for correlation in errors.
-
SERROR
public static final ParameterTypeDouble SERROR
Deprecated.Parameter for distance error factor.
-
VERROR
public static final ParameterTypeDouble VERROR
Deprecated.Parameter for speed error factor.
-
AERROR
public static final ParameterTypeDouble AERROR
Deprecated.Parameter for acceleration error factor.
-
-
Constructor Detail
-
DelayedNeighborsPerception
public DelayedNeighborsPerception(LanePerception perception, Anticipation anticipation)
Deprecated.- Parameters:
perception- LanePerception; perceptionanticipation- Anticipation; anticipation
-
-
Method Detail
-
notify
public void notify(EventInterface event) throws RemoteException
Deprecated.- Specified by:
notifyin interfaceEventListenerInterface- Throws:
RemoteException
-
getFirstLeaders
public final SortedSet<HeadwayGTU> getFirstLeaders(LateralDirectionality lat) throws ParameterException, NullPointerException, IllegalArgumentException
Deprecated.- Specified by:
getFirstLeadersin interfaceNeighborsPerception- Throws:
ParameterExceptionNullPointerExceptionIllegalArgumentException
-
getFirstFollowers
public final SortedSet<HeadwayGTU> getFirstFollowers(LateralDirectionality lat) throws ParameterException, NullPointerException, IllegalArgumentException
Deprecated.- Specified by:
getFirstFollowersin interfaceNeighborsPerception- Throws:
ParameterExceptionNullPointerExceptionIllegalArgumentException
-
isGtuAlongside
public final boolean isGtuAlongside(LateralDirectionality lat) throws ParameterException, NullPointerException, IllegalArgumentException
Deprecated.- Specified by:
isGtuAlongsidein interfaceNeighborsPerception- Throws:
ParameterExceptionNullPointerExceptionIllegalArgumentException
-
getLeaders
public final PerceptionCollectable<HeadwayGTU,LaneBasedGTU> getLeaders(RelativeLane lane)
Deprecated.- Specified by:
getLeadersin interfaceNeighborsPerception
-
getFollowers
public final PerceptionCollectable<HeadwayGTU,LaneBasedGTU> getFollowers(RelativeLane lane)
Deprecated.- Specified by:
getFollowersin interfaceNeighborsPerception
-
-