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

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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 © 2013. All rights reserved.