|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AutoDriverCoordinatorView
An autonomous driver's from the viewpoint of coordinators.
| Method Summary | |
|---|---|
void |
addCurrentlyOccupiedLane(Lane lane)
Add a lane that the DriverAgent's vehicle currently occupies. |
double |
distanceFromPrevIntersection()
Find the distance from the previous intersection in the Lane in which the Vehicle is, from the position at which the Vehicle is. |
double |
distanceToNextIntersection()
Find the distance to the next intersection in the Lane in which the Vehicle is, from the position at which the Vehicle is. |
IntersectionManager |
getCurrentIM()
Get the IntersectionManager with which the agent is currently interacting. |
Lane |
getCurrentLane()
Get the Lane the DriverAgent is currently following. |
Road |
getDestination()
Get where this DriverAgent is going. |
boolean |
inCurrentIntersection()
Whether or not the Vehicle controlled by this driver agent is inside the intersection managed by the current IntersectionManager. |
IntersectionManager |
nextIntersectionManager()
Find the next IntersectionManager that the Vehicle will need to interact with, in this Lane. |
void |
setCurrentLane(Lane lane)
Set the Lane the DriverAgent is currently following. |
| Method Detail |
|---|
Lane getCurrentLane()
void setCurrentLane(Lane lane)
lane - the Lane the DriverAgent should followvoid addCurrentlyOccupiedLane(Lane lane)
lane - a lane that the DriverAgent's vehicle currently occupiesRoad getDestination()
IntersectionManager getCurrentIM()
IntersectionManager nextIntersectionManager()
Driver, but only to memoize it for
speed.
double distanceToNextIntersection()
Driver, but only to memoize it for
speed.
double distanceFromPrevIntersection()
boolean inCurrentIntersection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||