aim4.driver.pilot

## Class BasicPilot

- java.lang.Object
- - aim4.driver.pilot.BasicPilot

- Direct Known Subclasses:
    V2IPilot

      public abstract class BasicPilot
      extends Object

  The basic pilot agent.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BasicPilot()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | `cruise()` Maintain a cruising speed.
    `void` | `followCurrentLane()` Turn the wheel to follow the current lane, using the `DEFAULT_LEAD_TIME`.
    `void` | `followNewLane()` Turn the wheel to shift to the target lane of the vehicle.
    `abstract Driver` | `getDriver()` Get the driver this pilot controls.
    `abstract VehicleDriverView` | `getVehicle()` Get the vehicle this pilot controls.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BasicPilot

          public BasicPilot()

  - ### Method Detail

    - #### getVehicle

          public abstract VehicleDriverView getVehicle()

      Get the vehicle this pilot controls.

    - #### getDriver

          public abstract Driver getDriver()

      Get the driver this pilot controls.

    - #### followCurrentLane

          public void followCurrentLane()

      Turn the wheel to follow the current lane, using the `DEFAULT_LEAD_TIME`. This involves first projecting the Vehicle's current position onto the lane, and then projecting forward by a distance equal to the Vehicle's velocity multiplied by the lead time.

    - #### followNewLane

          public void followNewLane()

      Turn the wheel to shift to the target lane of the vehicle.

    - #### cruise

          protected void cruise()

      Maintain a cruising speed.

Copyright © 2013. All rights reserved.