public interface Intersection
Modifier and Type | Method and Description |
---|---|
Constants.TurnDirection |
calcTurnDirection(Lane currentLane,
Lane departureLane)
Get the turn direction of the vehicle at the next intersection.
|
Area |
getArea()
Get the Area controlled by this IntersectionManager.
|
Area |
getAreaPlus()
Get the area slightly larger than the area controlled
by this IntersectionManager.
|
Rectangle2D |
getBoundingBox()
Get the minimal rectangular region that encloses the intersection.
|
Point2D |
getCentroid()
Get the centroid of the IntersectionManager.
|
double |
getEntryHeading(Lane l)
Get the heading at which the given Lane enters the intersection.
|
List<Lane> |
getEntryLanes()
Get the Lanes that enter the space governed by this IntersectionManager.
|
WayPoint |
getEntryPoint(Lane l)
Get the Point at which the given Lane enters the intersection.
|
List<Road> |
getEntryRoads()
Get the Roads that enter the space governed by this IntersectionManager.
|
double |
getExitHeading(Lane l)
Get the heading at which the given Lane exits the intersection.
|
List<Lane> |
getExitLanes()
Get the Lanes that exit the space governed by this IntersectionManager.
|
WayPoint |
getExitPoint(Lane l)
Get the Point at which the given Lane exits the intersection.
|
List<Road> |
getExitRoads()
Get the Roads that exit the space governed by this IntersectionManager.
|
List<Lane> |
getLanes()
Get the Lanes incident to the space governed by this intersection.
|
List<Road> |
getRoads()
Get the Roads incident to the space governed by this intersection.
|
boolean |
isEnteredBy(Lane l)
Whether the given Lane enters this intersection.
|
boolean |
isExitedBy(Lane l)
Whether the given Lane leaves this intersection.
|
Area getArea()
Area getAreaPlus()
Point2D getCentroid()
Rectangle2D getBoundingBox()
List<Road> getRoads()
List<Lane> getLanes()
List<Road> getEntryRoads()
List<Lane> getEntryLanes()
boolean isEnteredBy(Lane l)
l
- the Lane to considerWayPoint getEntryPoint(Lane l)
l
- the Lanenull
if it does notdouble getEntryHeading(Lane l)
l
- the LaneList<Road> getExitRoads()
List<Lane> getExitLanes()
boolean isExitedBy(Lane l)
l
- the Lane to considerWayPoint getExitPoint(Lane l)
l
- the Lanenull
if it does notdouble getExitHeading(Lane l)
l
- the LaneConstants.TurnDirection calcTurnDirection(Lane currentLane, Lane departureLane)
currentLane
- the current lane.departureLane
- the departure lane.Copyright © 2013. All rights reserved.