aim4.driver.coordinator
Class NoIntersectionCoordinator

java.lang.Object
  extended by aim4.driver.coordinator.NoIntersectionCoordinator
All Implemented Interfaces:
Coordinator

public class NoIntersectionCoordinator
extends Object
implements Coordinator

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

NoIntersectionCoordinator

public NoIntersectionCoordinator(AutoVehicleDriverView vehicle,
                                 AutoDriver driver)
Create an coordinator to coordinate a vehicle.

Parameters:
vehicle - the Vehicle to coordinate
driver - the driver
Method Detail

act

public void act()
Receive, process, and send messages between Vehicles and IntersectionManagers, and maintain the reservation status in the Vehicle.

Specified by:
act in interface Coordinator

isTerminated

public boolean isTerminated()
Whether of not the coordinator has finished its job.

Specified by:
isTerminated in interface Coordinator


Copyright © 2011. All Rights Reserved.