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-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 class
AbstractDelayedNeighborsPerception.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>>
CROSSSECTION
Deprecated.Info type id for cross-section.protected static ParameterTypeDuration
DT
Deprecated.Time step parameter type.static String
FIRSTFOLLOWERS
Deprecated.Info type id base for first followers.static String
FIRSTLEADERS
Deprecated.Info type id base for first leaders.static String
FOLLOWERS
Deprecated.Info type id base for followers.static String
GTUALONGSIDE
Deprecated.Info type id base for gtu alongside.static String
LEADERS
Deprecated.Info type id base for leaders.static AbstractDelayedNeighborsPerception.NeighborsInfoType<Length>
ODOMETER
Deprecated.Id for odometer info type.protected static ParameterTypeDuration
TR
Deprecated.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.boolean
isGtuAlongsideOverride(LateralDirectionality lat)
Deprecated.Returns whether to override the gtu alongside boolean as true.void
updateAll()
Deprecated.protected void
updateAllDelayed()
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, ParameterException
Deprecated.- Specified by:
updateAll
in interfacePerceptionCategory<LaneBasedGTU,LanePerception>
- Throws:
GTUException
NetworkException
ParameterException
-
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, ParameterException
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
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
-
-