|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aim4.driver.coordinator.NoIntersectionCoordinator
public class NoIntersectionCoordinator
The coordinator when there is no intersection.
Constructor Summary | |
---|---|
NoIntersectionCoordinator(AutoVehicleDriverView vehicle,
AutoDriver driver)
Create an coordinator to coordinate a vehicle. |
Method Summary | |
---|---|
void |
act()
Receive, process, and send messages between Vehicles and IntersectionManagers, and maintain the reservation status in the Vehicle. |
boolean |
isTerminated()
Whether of not the coordinator has finished its job. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoIntersectionCoordinator(AutoVehicleDriverView vehicle, AutoDriver driver)
vehicle
- the Vehicle to coordinatedriver
- the driverMethod Detail |
---|
public void act()
act
in interface Coordinator
public boolean isTerminated()
isTerminated
in interface Coordinator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |