public class DelayedNeighborsPerception extends AbstractDelayedNeighborsPerception
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Class and Description |
|---|---|
static class |
DelayedNeighborsPerception.Anticipation
Form of anticipation.
|
AbstractDelayedNeighborsPerception.NeighborsInfoType<T>AbstractDelayedPerceptionCategory.DelayedInfoType<T>| Modifier and Type | Field and Description |
|---|---|
static org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDouble |
AERROR
Parameter for acceleration error factor.
|
static org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDouble |
SERROR
Parameter for distance error factor.
|
static org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDuration |
TA
Parameter for anticipating beyond current time.
|
static org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDuration |
TAUE
Parameter for correlation in errors.
|
static org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDouble |
VERROR
Parameter for speed error factor.
|
CROSSSECTION, FIRSTFOLLOWERS, FIRSTLEADERS, FOLLOWERS, GTUALONGSIDE, LEADERS, ODOMETERMAX_RED_DECELERATION, MAX_YELLOW_DECELERATION| Constructor and Description |
|---|
DelayedNeighborsPerception(LanePerception perception,
DelayedNeighborsPerception.Anticipation anticipation) |
| Modifier and Type | Method and Description |
|---|---|
SortedSet<HeadwayGTU> |
getFirstFollowers(org.opentrafficsim.core.network.LateralDirectionality lat)
Set of followers on a lane, which is usually 0 or 1, but possibly more in case of an upstream merge with no intermediate
GTU.
|
SortedSet<HeadwayGTU> |
getFirstLeaders(org.opentrafficsim.core.network.LateralDirectionality lat)
Set of leaders on a lane, which is usually 0 or 1, but possibly more in case of a downstream split with no intermediate
GTU.
|
SortedSet<HeadwayGTU> |
getFollowers(RelativeLane lane)
Set of followers on a lane, including adjacent GTU's who's FRONT is back of the own vehicle FRONT.
|
SortedSet<HeadwayGTU> |
getLeaders(RelativeLane lane)
Set of leaders on a lane, including adjacent GTU's who's FRONT is ahead of the own vehicle FRONT.
|
boolean |
isGtuAlongside(org.opentrafficsim.core.network.LateralDirectionality lat)
Whether there is a GTU alongside, i.e.
|
getDelayedCrossSection, isGtuAlongsideOverride, updateAll, updateAllDelayed, updateFirstFollowers, updateFirstLeaders, updateFollowers, updateGtuAlongside, updateLeaderschangeLane, getInfo, getInfo, setInfo, setInfogetGtu, getPerceptionpublic static final org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDuration TA
public static final org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDuration TAUE
public static final org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDouble SERROR
public static final org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDouble VERROR
public static final org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDouble AERROR
public DelayedNeighborsPerception(LanePerception perception, DelayedNeighborsPerception.Anticipation anticipation)
perception - perceptionanticipation - anticipationpublic SortedSet<HeadwayGTU> getFirstLeaders(org.opentrafficsim.core.network.LateralDirectionality lat) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException, NullPointerException, IllegalArgumentException
| |
_________/B/_____
_ _?_ _ _~_ _C_ _
_ _A_ _ _ _ _ _ _
_________________
Only vehicles who's rear is beyond the own front are considered, no alongside vehicles.lat - LEFT or RIGHTorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException - if parameter is not definedNullPointerException - if lat is nullIllegalArgumentException - if lat is NONEpublic SortedSet<HeadwayGTU> getFirstFollowers(org.opentrafficsim.core.network.LateralDirectionality lat) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException, NullPointerException, IllegalArgumentException
| |
|C|
________\ \______
_ _B_|_ _ _ _ _?_
_ _ _|_ _ _ _ _A_
_____|___________
Only vehicles who's front is before the own rear are considered, no alongside vehicles.lat - LEFT or RIGHTorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException - if parameter is not definedNullPointerException - if lat is nullIllegalArgumentException - if lat is NONEpublic boolean isGtuAlongside(org.opentrafficsim.core.network.LateralDirectionality lat)
throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException,
NullPointerException,
IllegalArgumentException
lat - LEFT or RIGHTorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException - if parameter is not definedNullPointerException - if lat is nullIllegalArgumentException - if lat is NONEpublic SortedSet<HeadwayGTU> getLeaders(RelativeLane lane)
lane - relative lateral lanepublic SortedSet<HeadwayGTU> getFollowers(RelativeLane lane)
lane - relative lateral laneCopyright © 2014–2017 Delft University of Technology. All rights reserved.