public class NoIntersectionCoordinator extends Object implements Coordinator
| Constructor and Description |
|---|
NoIntersectionCoordinator(AutoVehicleDriverView vehicle,
AutoDriver driver)
Create an coordinator to coordinate a vehicle.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public NoIntersectionCoordinator(AutoVehicleDriverView vehicle, AutoDriver driver)
vehicle - the Vehicle to coordinatedriver - the driverpublic void act()
act in interface Coordinatorpublic boolean isTerminated()
isTerminated in interface CoordinatorCopyright © 2013. All rights reserved.