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 Coordinator
public boolean isTerminated()
isTerminated
in interface Coordinator
Copyright © 2013. All rights reserved.