public interface InfrastructurePerception extends LaneBasedPerceptionCategory
Copyright (c) 2013-2018 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 |
|---|---|
SortedSet<RelativeLane> |
getCrossSection()
Returns a set of relative lanes representing the cross section.
|
SortedSet<InfrastructureLaneChangeInfo> |
getInfrastructureLaneChangeInfo(RelativeLane lane)
Returns infrastructure lane change info of a lane.
|
Length |
getLegalLaneChangePossibility(RelativeLane fromLane,
LateralDirectionality lat)
Returns the distance over which a lane change remains legally possible.
|
Length |
getPhysicalLaneChangePossibility(RelativeLane fromLane,
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).
|
default void |
updateAll() |
void |
updateCrossSection()
Updates a set of relative lanes representing the cross section.
|
void |
updateInfrastructureLaneChangeInfo(RelativeLane lane)
Updates the infrastructural lane change info.
|
void |
updateLegalLaneChangePossibility(RelativeLane lane,
LateralDirectionality lat)
Updates the distance over which lane changes remains legally possible.
|
void |
updatePhysicalLaneChangePossibility(RelativeLane lane,
LateralDirectionality lat)
Updates the distance over which lane changes remains physically possible.
|
void |
updateSpeedLimitProspect(RelativeLane lane)
Updates the speed limit prospect.
|
void updateInfrastructureLaneChangeInfo(RelativeLane lane) throws GTUException, ParameterException
lane - relative lateral laneGTUException - if the GTU was not initialized or if the lane is not in the cross sectionParameterException - if a parameter is not definedvoid updateSpeedLimitProspect(RelativeLane lane) throws GTUException, ParameterException
lane - relative lateral laneGTUException - if the GTU was not initialized or if the lane is not in the cross sectionParameterException - if a parameter is not definedvoid updateLegalLaneChangePossibility(RelativeLane lane, LateralDirectionality lat) throws GTUException, ParameterException
lane - lane from which the lane change possibility is requestedlat - LEFT or RIGHT, null not allowedGTUException - if the GTU was not initialized or if the lane is not in the cross sectionParameterException - if a parameter is not definedvoid updatePhysicalLaneChangePossibility(RelativeLane lane, LateralDirectionality lat) throws GTUException, ParameterException
lane - lane from which the lane change possibility is requestedlat - LEFT or RIGHT, null not allowedGTUException - if the GTU was not initialized or if the lane is not in the cross sectionParameterException - if a parameter is not definedvoid updateCrossSection()
throws GTUException,
ParameterException
GTUException - if the GTU was not initializedParameterException - if a parameter is not definedSortedSet<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 laneLength getLegalLaneChangePossibility(RelativeLane fromLane, LateralDirectionality lat)
fromLane - lane from which the lane change possibility is requestedlat - LEFT or RIGHT, null not allowedNullPointerException - if lat == nullLength getPhysicalLaneChangePossibility(RelativeLane fromLane, LateralDirectionality lat)
fromLane - lane from which the lane change possibility is requestedlat - LEFT or RIGHT, null not allowedNullPointerException - if lat == nullSortedSet<RelativeLane> getCrossSection()
default void updateAll()
throws GTUException,
ParameterException
updateAll in interface PerceptionCategory<LaneBasedGTU,LanePerception>GTUExceptionParameterExceptionCopyright © 2014–2018 Delft University of Technology. All rights reserved.