Package org.opentrafficsim.ahfe
Class AbstractDelayedNeighborsPerception
- 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
-
- All Implemented Interfaces:
Serializable,PerceptionCategory<LaneBasedGTU,LanePerception>,LaneBasedPerceptionCategory,NeighborsPerception
- Direct Known Subclasses:
DelayedNeighborsPerception
@Deprecated public abstract class AbstractDelayedNeighborsPerception extends AbstractDelayedPerceptionCategory implements NeighborsPerception
Deprecated.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 Modifier and Type Class Description static classAbstractDelayedNeighborsPerception.NeighborsInfoType<T>Deprecated.Delayed information about the type of the neighbors.-
Nested classes/interfaces inherited from class org.opentrafficsim.ahfe.AbstractDelayedPerceptionCategory
AbstractDelayedPerceptionCategory.DelayedInfoType<T>
-
-
Field Summary
Fields Modifier and Type Field Description static AbstractDelayedNeighborsPerception.NeighborsInfoType<SortedSet<RelativeLane>>CROSSSECTIONDeprecated.Info type id for cross-section.protected static ParameterTypeDurationDTDeprecated.Time step parameter type.static StringFIRSTFOLLOWERSDeprecated.Info type id base for first followers.static StringFIRSTLEADERSDeprecated.Info type id base for first leaders.static StringFOLLOWERSDeprecated.Info type id base for followers.static StringGTUALONGSIDEDeprecated.Info type id base for gtu alongside.static StringLEADERSDeprecated.Info type id base for leaders.static AbstractDelayedNeighborsPerception.NeighborsInfoType<Length>ODOMETERDeprecated.Id for odometer info type.protected static ParameterTypeDurationTRDeprecated.Reaction time parameter type.-
Fields inherited from class org.opentrafficsim.road.gtu.lane.perception.categories.LaneBasedAbstractPerceptionCategory
MAX_RED_DECELERATION, MAX_YELLOW_DECELERATION
-
-
Constructor Summary
Constructors Constructor Description AbstractDelayedNeighborsPerception(LanePerception perception)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SortedSet<RelativeLane>getDelayedCrossSection()Deprecated.Returns the cross-section on which the most recent observed neighbors were determined.booleanisGtuAlongsideOverride(LateralDirectionality lat)Deprecated.Returns whether to override the gtu alongside boolean as true.voidupdateAll()Deprecated.protected voidupdateAllDelayed()Deprecated.Performs actual update.-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opentrafficsim.road.gtu.lane.perception.categories.neighbors.NeighborsPerception
getFirstFollowers, getFirstLeaders, getFollowers, getLeaders, isGtuAlongside
-
-
-
-
Field Detail
-
TR
protected static final ParameterTypeDuration TR
Deprecated.Reaction time parameter type.
-
DT
protected static final ParameterTypeDuration DT
Deprecated.Time step parameter type.
-
FIRSTLEADERS
public static final String FIRSTLEADERS
Deprecated.Info type id base for first leaders.- See Also:
- Constant Field Values
-
FIRSTFOLLOWERS
public static final String FIRSTFOLLOWERS
Deprecated.Info type id base for first followers.- See Also:
- Constant Field Values
-
GTUALONGSIDE
public static final String GTUALONGSIDE
Deprecated.Info type id base for gtu alongside.- See Also:
- Constant Field Values
-
LEADERS
public static final String LEADERS
Deprecated.Info type id base for leaders.- See Also:
- Constant Field Values
-
FOLLOWERS
public static final String FOLLOWERS
Deprecated.Info type id base for followers.- See Also:
- Constant Field Values
-
CROSSSECTION
public static final AbstractDelayedNeighborsPerception.NeighborsInfoType<SortedSet<RelativeLane>> CROSSSECTION
Deprecated.Info type id for cross-section.
-
ODOMETER
public static final AbstractDelayedNeighborsPerception.NeighborsInfoType<Length> ODOMETER
Deprecated.Id for odometer info type.
-
-
Constructor Detail
-
AbstractDelayedNeighborsPerception
public AbstractDelayedNeighborsPerception(LanePerception perception)
Deprecated.Constructor.- Parameters:
perception- LanePerception; perception
-
-
Method Detail
-
updateAll
public final void updateAll() throws GTUException, NetworkException, ParameterExceptionDeprecated.- Specified by:
updateAllin interfacePerceptionCategory<LaneBasedGTU,LanePerception>- Throws:
GTUExceptionNetworkExceptionParameterException
-
isGtuAlongsideOverride
public final boolean isGtuAlongsideOverride(LateralDirectionality lat)
Deprecated.Returns whether to override the gtu alongside boolean as true.- Parameters:
lat- LateralDirectionality; lateral direction- Returns:
- whether to override the gtu alongside boolean as true
-
updateAllDelayed
protected void updateAllDelayed() throws GTUException, NetworkException, ParameterExceptionDeprecated.Performs actual update.- Throws:
ParameterException- if parameter is not present or is given a wrong valueNetworkException- on error in the networkGTUException- if not initialized
-
getDelayedCrossSection
public final SortedSet<RelativeLane> getDelayedCrossSection()
Deprecated.Returns the cross-section on which the most recent observed neighbors were determined.- Returns:
- cross-section on which the most recent observed neighbors were determined
-
-