Class Lane
-
- All Implemented Interfaces:
public final class LaneData class for lanes.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisTurningLeftprivate final BooleanisTurningRightprivate final BooleanisStraightprivate final BooleanhasStopSignprivate final BooleanhasYieldSignprivate final BooleanhasStopOrYieldSignprivate final BooleanhasTrafficLightprivate final IntegerlaneIdprivate Roadroadprivate final LaneTypelaneTypeprivate final DoublelaneWidthprivate final DoublelaneLengthprivate List<ContactLaneInfo>predecessorLanesprivate List<ContactLaneInfo>successorLanesprivate List<ContactLaneInfo>intersectingLanesprivate List<ContactLaneInfo>yieldLanesprivate final List<LaneMidpoint>laneMidpointsprivate List<SpeedLimit>speedLimitsprivate final List<Landmark>landmarksprivate List<ContactArea>contactAreasprivate List<StaticTrafficLight>trafficLightsprivate LaneDirectionlaneDirection
-
Constructor Summary
Constructors Constructor Description Lane(Integer laneId, Road road, LaneType laneType, Double laneWidth, Double laneLength, List<ContactLaneInfo> predecessorLanes, List<ContactLaneInfo> successorLanes, List<ContactLaneInfo> intersectingLanes, List<ContactLaneInfo> yieldLanes, List<LaneMidpoint> laneMidpoints, List<SpeedLimit> speedLimits, List<Landmark> landmarks, List<ContactArea> contactAreas, List<StaticTrafficLight> trafficLights, LaneDirection laneDirection)
-
Method Summary
-
-
Constructor Detail
-
Lane
Lane(Integer laneId, Road road, LaneType laneType, Double laneWidth, Double laneLength, List<ContactLaneInfo> predecessorLanes, List<ContactLaneInfo> successorLanes, List<ContactLaneInfo> intersectingLanes, List<ContactLaneInfo> yieldLanes, List<LaneMidpoint> laneMidpoints, List<SpeedLimit> speedLimits, List<Landmark> landmarks, List<ContactArea> contactAreas, List<StaticTrafficLight> trafficLights, LaneDirection laneDirection)
-
-
Method Detail
-
isTurningLeft
final Boolean isTurningLeft()
-
isTurningRight
final Boolean isTurningRight()
-
isStraight
final Boolean isStraight()
-
getHasStopSign
final Boolean getHasStopSign()
-
getHasYieldSign
final Boolean getHasYieldSign()
-
getHasStopOrYieldSign
final Boolean getHasStopOrYieldSign()
-
getHasTrafficLight
final Boolean getHasTrafficLight()
-
getLaneType
final LaneType getLaneType()
-
getLaneWidth
final Double getLaneWidth()
The width of the Lane.
-
getLaneLength
final Double getLaneLength()
The length of the Lane.
-
getPredecessorLanes
final List<ContactLaneInfo> getPredecessorLanes()
List of ContactLaneInfos for preceding Lanes.
-
setPredecessorLanes
final Unit setPredecessorLanes(List<ContactLaneInfo> predecessorLanes)
List of ContactLaneInfos for preceding Lanes.
-
getSuccessorLanes
final List<ContactLaneInfo> getSuccessorLanes()
List of ContactLaneInfos for successive Lanes.
-
setSuccessorLanes
final Unit setSuccessorLanes(List<ContactLaneInfo> successorLanes)
List of ContactLaneInfos for successive Lanes.
-
getIntersectingLanes
final List<ContactLaneInfo> getIntersectingLanes()
List of ContactLaneInfos for intersecting Lanes.
-
setIntersectingLanes
final Unit setIntersectingLanes(List<ContactLaneInfo> intersectingLanes)
List of ContactLaneInfos for intersecting Lanes.
-
getYieldLanes
final List<ContactLaneInfo> getYieldLanes()
List of Lanes that this Lane yields to. Lanes that this lane must yield to according to the "right before left" rule, i.e., traffic signs or lights are not taken into account. it is always a subset of intersectingLanes
-
setYieldLanes
final Unit setYieldLanes(List<ContactLaneInfo> yieldLanes)
List of Lanes that this Lane yields to. Lanes that this lane must yield to according to the "right before left" rule, i.e., traffic signs or lights are not taken into account. it is always a subset of intersectingLanes
-
getLaneMidpoints
final List<LaneMidpoint> getLaneMidpoints()
List of LaneMidpoints for Lane midpoints.
-
getSpeedLimits
final List<SpeedLimit> getSpeedLimits()
List of SpeedLimits for the speed limits.
-
setSpeedLimits
final Unit setSpeedLimits(List<SpeedLimit> speedLimits)
List of SpeedLimits for the speed limits.
-
getLandmarks
final List<Landmark> getLandmarks()
-
getContactAreas
final List<ContactArea> getContactAreas()
List of ContactAreas on this Lane.
-
setContactAreas
final Unit setContactAreas(List<ContactArea> contactAreas)
List of ContactAreas on this Lane.
-
getTrafficLights
final List<StaticTrafficLight> getTrafficLights()
List of StaticTrafficLights on this Lane.
-
setTrafficLights
final Unit setTrafficLights(List<StaticTrafficLight> trafficLights)
List of StaticTrafficLights on this Lane.
-
getLaneDirection
final LaneDirection getLaneDirection()
The LaneDirection of this Lane.
-
setLaneDirection
final Unit setLaneDirection(LaneDirection laneDirection)
The LaneDirection of this Lane.
-
speedAt
final Double speedAt(Double vPos)
Returns the speed limit for the current position in mph or 30mph if no speed sign is available.
-
contactPointPos
final Double contactPointPos(Lane otherLane)
Retrieve the position (relative to this lane's start) where otherLane is crossed. if the lanes do not cross, return -1.0
-
-
-
-