public interface Navigator
AutoDriver to do so.| 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.
|
Road navigate(Road current, IntersectionManager im, Road destination)
current - the Road on which the vehicle is currently travelingim - the IntersectionManager the vehicle is approachingdestination - the Road on which the vehicle would ultimately like to
end upCopyright © 2013. All rights reserved.