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:
java.io.Serializable,PerceptionCategory<LaneBasedGTU,LanePerception>,LaneBasedPerceptionCategory,NeighborsPerception
- Direct Known Subclasses:
DelayedNeighborsPerception
@Deprecated public abstract class AbstractDelayedNeighborsPerception extends AbstractDelayedPerceptionCategory implements NeighborsPerception
Deprecated.
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 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<java.util.SortedSet<RelativeLane>>CROSSSECTIONDeprecated.Info type id for cross-section.protected static ParameterTypeDurationDTDeprecated.Time step parameter type.static java.lang.StringFIRSTFOLLOWERSDeprecated.Info type id base for first followers.static java.lang.StringFIRSTLEADERSDeprecated.Info type id base for first leaders.static java.lang.StringFOLLOWERSDeprecated.Info type id base for followers.static java.lang.StringGTUALONGSIDEDeprecated.Info type id base for gtu alongside.static java.lang.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
Modifier and Type Method Description java.util.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, setInfoMethods inherited from class org.opentrafficsim.road.gtu.lane.perception.categories.LaneBasedAbstractPerceptionCategory
computeIfAbsent, computeIfAbsent, computeIfAbsentMethods inherited from class org.opentrafficsim.core.gtu.perception.AbstractPerceptionCategory
getGtu, getObjectOrNull, getPerception, getTimestampMethods 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.NeighborsPerception
getFirstFollowers, getFirstLeaders, getFollowers, getLeaders, isGtuAlongside
-
Field Details
-
TR
Deprecated.Reaction time parameter type. -
DT
Deprecated.Time step parameter type. -
FIRSTLEADERS
public static final java.lang.String FIRSTLEADERSDeprecated.Info type id base for first leaders.- See Also:
- Constant Field Values
-
FIRSTFOLLOWERS
public static final java.lang.String FIRSTFOLLOWERSDeprecated.Info type id base for first followers.- See Also:
- Constant Field Values
-
GTUALONGSIDE
public static final java.lang.String GTUALONGSIDEDeprecated.Info type id base for gtu alongside.- See Also:
- Constant Field Values
-
LEADERS
public static final java.lang.String LEADERSDeprecated.Info type id base for leaders.- See Also:
- Constant Field Values
-
FOLLOWERS
public static final java.lang.String FOLLOWERSDeprecated.Info type id base for followers.- See Also:
- Constant Field Values
-
CROSSSECTION
public static final AbstractDelayedNeighborsPerception.NeighborsInfoType<java.util.SortedSet<RelativeLane>> CROSSSECTIONDeprecated.Info type id for cross-section. -
ODOMETER
Deprecated.Id for odometer info type.
-
-
Constructor Details
-
AbstractDelayedNeighborsPerception
Deprecated.Constructor.- Parameters:
perception- LanePerception; perception
-
-
Method Details
-
updateAll
Deprecated.- Specified by:
updateAllin interfacePerceptionCategory<LaneBasedGTU,LanePerception>- Throws:
GTUExceptionNetworkExceptionParameterException
-
isGtuAlongsideOverride
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
Deprecated.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
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
-