aim4.driver.navigator
Interface Navigator

All Known Implementing Classes:
BasicNavigator

public interface Navigator

An agent that chooses which way a vehicle should go, and uses information from a AutoDriver to do so.


Method Summary
 Road navigate(Road current, IntersectionManager im, Road destination)
          Given the current Road, the IntersectionManager being approached, and a destination Road, find a road that leave the IntersectionManager that will lead to the destination Road.
 

Method Detail

navigate

Road navigate(Road current,
              IntersectionManager im,
              Road destination)
Given the current Road, the IntersectionManager being approached, and a destination Road, find a road that leave the IntersectionManager that will lead to the destination Road.

Parameters:
current - the Road on which the vehicle is currently traveling
im - the IntersectionManager the vehicle is approaching
destination - the Road on which the vehicle would ultimately like to end up
Returns:
a road to take out of the intersection governed by the given IntersectionManager


Copyright © 2011. All Rights Reserved.