|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aim4.driver.DriverUtil
public class DriverUtil
A utility class for drivers.
Field Summary | |
---|---|
static double |
DEFAULT_LEAD_TIME
The default amount of lead time for lane following, in seconds. |
static double |
MIN_LEAD_DIST
The constant term in the formula of calculating lead distances. |
Method Summary | |
---|---|
static double |
calculateMaxFeasibleVelocity(VehicleDriverView vehicle)
Determine the maximum velocity at which the Vehicle should travel given the Lane in which it is. |
static double |
getLeadDistance(VehicleDriverView vehicle)
Get the estimated lead distance, which is roughly equal to the speed of the vehicle times the default lead time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double DEFAULT_LEAD_TIME
public static final double MIN_LEAD_DIST
Method Detail |
---|
public static double getLeadDistance(VehicleDriverView vehicle)
public static double calculateMaxFeasibleVelocity(VehicleDriverView vehicle)
vehicle
- the vehicle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |