public interface PerceivedSurroundings
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Method and Description |
---|---|
boolean |
existsGtuAlongside(org.opentrafficsim.core.network.LateralDirectionality lat)
Whether there is a GTU alongside, i.e.
|
SortedSet<RelativeLane> |
getCurrentCrossSection()
Returns a set of relative lanes representing the current cross section.
|
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 REAR is back of the own vehicle REAR.
|
SortedSet<InfrastructureLaneChangeInfo> |
getInfrastructureLaneChangeInfo(RelativeLane lane)
Returns infrastructure lane change info of a lane.
|
SortedSet<Object> |
getIntersectionConflicts(RelativeLane lane)
Returns a set of intersection conflicts along the route.
|
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.
|
org.djunits.value.vdouble.scalar.Length |
getLegalLaneChangePossibility(RelativeLane fromLane,
org.opentrafficsim.core.network.LateralDirectionality lat)
Returns the distance over which a lane change remains legally possible.
|
org.djunits.value.vdouble.scalar.Length |
getPhysicalLaneChangePossibility(RelativeLane fromLane,
org.opentrafficsim.core.network.LateralDirectionality lat)
Returns the distance over which a lane change remains physically possible.
|
SpeedLimitProspect |
getSpeedLimitProspect(RelativeLane lane)
Returns the prospect for speed limits on a lane (dynamic speed limits may vary between lanes).
|
SortedSet<HeadwayTrafficLight> |
getTrafficLights()
Returns a set of traffic lights along the route.
|
SortedSet<HeadwayGTU> getFirstLeaders(org.opentrafficsim.core.network.LateralDirectionality lat)
| | _________/B/_____ _ _?_ _ _~_ _C_ _ _ _A_ _ _ _ _ _ _ _________________
lat
- LEFT, null (current) or RIGHTSortedSet<HeadwayGTU> getFirstFollowers(org.opentrafficsim.core.network.LateralDirectionality lat)
| | |C| ________\ \______ _ _B_|_ _ _ _ _?_ _ _ _|_ _ _ _ _A_ _____|___________
lat
- LEFT, null (current) or RIGHTboolean existsGtuAlongside(org.opentrafficsim.core.network.LateralDirectionality lat)
lat
- LEFT or RIGHT, null not allowedNullPointerException
- if lat == null
SortedSet<HeadwayGTU> getLeaders(RelativeLane lane)
lane
- relative lateral laneSortedSet<HeadwayGTU> getFollowers(RelativeLane lane)
lane
- relative lateral laneSortedSet<InfrastructureLaneChangeInfo> getInfrastructureLaneChangeInfo(RelativeLane lane)
_______ _ _A_ _\_________ _ _ _ _ _ _ _ _ _ _________ _ _ ___ \_______ (-) Lane-drop: 1 lane change in 400m (400m per lane change) (--------) Off-ramp: 3 lane changes in 900m (300m per lane change, critical) (-) Lane-drop: 1 lane change in 100m (100m per lane change, critical) (--------) Off-ramp: 3 lane changes in 600m (200m per lane change)
lane
- relative lateral laneSpeedLimitProspect getSpeedLimitProspect(RelativeLane lane)
lane
- relative lateral laneorg.djunits.value.vdouble.scalar.Length getLegalLaneChangePossibility(RelativeLane fromLane, org.opentrafficsim.core.network.LateralDirectionality lat)
fromLane
- lane from which the lane change possibility is requestedlat
- LEFT or RIGHT, null not allowedNullPointerException
- if lat == null
org.djunits.value.vdouble.scalar.Length getPhysicalLaneChangePossibility(RelativeLane fromLane, org.opentrafficsim.core.network.LateralDirectionality lat)
fromLane
- lane from which the lane change possibility is requestedlat
- LEFT or RIGHT, null not allowedNullPointerException
- if lat == null
SortedSet<RelativeLane> getCurrentCrossSection()
SortedSet<HeadwayTrafficLight> getTrafficLights()
SortedSet<Object> getIntersectionConflicts(RelativeLane lane)
lane
- relative lateral laneCopyright © 2014–2016 Delft University of Technology. All rights reserved.