| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaim4.driver.pilot.BasicPilot
public abstract class BasicPilot
The basic pilot agent.
| Constructor Summary | |
|---|---|
BasicPilot()
 | 
|
| Method Summary | |
|---|---|
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 | 
|---|
public BasicPilot()
| Method Detail | 
|---|
public abstract VehicleDriverView getVehicle()
public abstract Driver getDriver()
public void followCurrentLane()
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.
public void followNewLane()
protected void cruise()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||