|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TrackModel
The interface of track models
Method Summary | |
---|---|
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. |
Method Detail |
---|
RoadBasedIntersection getIntersection()
double traversalDistance(Road arrival, Road departure)
arrival
- the arrival Roaddeparture
- the departure Road
double traversalDistance(Lane arrival, Lane departure)
arrival
- the arrival Lanedeparture
- the departure Lane
double traversalDistance(int arrivalID, int departureID)
arrivalID
- the ID number of the arrival LanedepartureID
- the ID number of the departure Lane
List<Lane> getSortedDepartureLanes(Lane arrivalLane, Road departure)
arrivalLane
- the Lane in which the vehicle is arrivingdeparture
- the Road by which the vehicle is departing
boolean 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 trajectory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |