|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aim4.im.RoadBasedTrackModel
public class RoadBasedTrackModel
A track model for road based intersections
Constructor Summary | |
---|---|
RoadBasedTrackModel(RoadBasedIntersection intersection)
Basic class constructor. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RoadBasedTrackModel(RoadBasedIntersection intersection)
intersection
- a lane-based intersection.Method Detail |
---|
public RoadBasedIntersection getIntersection()
getIntersection
in interface TrackModel
public List<Lane> getSortedDepartureLanes(Lane arrivalLane, Road departure)
getSortedDepartureLanes
in interface TrackModel
arrivalLane
- the Lane in which the vehicle is arrivingdeparture
- the Road by which the vehicle is departing
public boolean trajectoriesConflict(int l11, int l12, int l21, int l22)
trajectoriesConflict
in interface TrackModel
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
public double traversalDistance(Road arrival, Road departure)
traversalDistance
in interface TrackModel
arrival
- the arrival Roaddeparture
- the departure Road
public double traversalDistance(Lane arrival, Lane departure)
traversalDistance
in interface TrackModel
arrival
- the arrival Lanedeparture
- the departure Lane
public double traversalDistance(int arrivalID, int departureID)
traversalDistance
in interface TrackModel
arrivalID
- the ID number of the arrival LanedepartureID
- the ID number of the departure Lane
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |