public interface TrackModel
Modifier and Type | Method and Description |
---|---|
RoadBasedIntersection |
getIntersection()
Get the intersection managed by this track model
|
List<Lane> |
getSortedDepartureLanes(Lane arrivalLane,
Road departure)
Given an arrival Lane and a departure Road, get an ordered List of Lanes
that represents the Lanes from highest to lowest priority based on
distance from the arrival Lane.
|
boolean |
trajectoriesConflict(int l11,
int l12,
int l21,
int l22)
Determine whether two trajectories overlap.
|
double |
traversalDistance(int arrivalID,
int departureID)
Get the distance from the entry of the Lane with the first given ID, to
the departure of the Lane with the other given ID, if traveling along
segments through their point of intersection.
|
double |
traversalDistance(Lane arrival,
Lane departure)
Get the distance from the entry of the given Lane, to the departure of
the other given Lane, if traveling along segments through their point
of intersection.
|
double |
traversalDistance(Road arrival,
Road departure)
Get the distance from the entry of the given Road, to the departure of
the other given Road.
|
RoadBasedIntersection getIntersection()
double traversalDistance(Road arrival, Road departure)
arrival
- the arrival Roaddeparture
- the departure Roaddouble traversalDistance(Lane arrival, Lane departure)
arrival
- the arrival Lanedeparture
- the departure Lanedouble traversalDistance(int arrivalID, int departureID)
arrivalID
- the ID number of the arrival LanedepartureID
- the ID number of the departure LaneList<Lane> getSortedDepartureLanes(Lane arrivalLane, Road departure)
arrivalLane
- the Lane in which the vehicle is arrivingdeparture
- the Road by which the vehicle is departingboolean trajectoriesConflict(int l11, int l12, int l21, int l22)
l11
- the ID number of the entry lane for the first trajectoryl12
- the ID number of the exit lane for the first trajectoryl21
- the ID number of the entry lane for the second trajectoryl22
- the ID number of the exit lane for the second trajectoryCopyright © 2013. All rights reserved.