Constructor and Description |
---|
BasicPilot() |
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.
|
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()
Copyright © 2013. All rights reserved.