aim4.driver.coordinator
Class MaxAccelReservationCheck
java.lang.Object
aim4.driver.coordinator.MaxAccelReservationCheck
public class MaxAccelReservationCheck
- extends Object
This class provides functions to solve the validation problem.
|
Method Summary |
static AccelSchedule |
check(double time1,
double v1,
double timeEnd,
double vEnd,
double dTotal,
double vTop,
double accel,
double decel)
Calculate a simple acceleration schedule if the driver drives. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaxAccelReservationCheck
public MaxAccelReservationCheck()
check
public static AccelSchedule check(double time1,
double v1,
double timeEnd,
double vEnd,
double dTotal,
double vTop,
double accel,
double decel)
throws ReservationCheckException
- Calculate a simple acceleration schedule if the driver drives.
- Parameters:
time1 - the initial timev1 - the initial velocitytimeEnd - the arrival timevEnd - the arrival velocitydTotal - the distance between the vehicle and the intersectionvTop - the speed limit of the roadaccel - the maximum accelerationdecel - the maximum deceleration
- Returns:
- the acceleration schedule; null if there is no acceleration
schedule that satisfies the constraints.
- Throws:
if - no solution is found.
ReservationCheckException
Copyright © 2011. All Rights Reserved.