public class MaxAccelReservationCheck extends Object
Constructor and Description |
---|
MaxAccelReservationCheck() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static AccelSchedule check(double time1, double v1, double timeEnd, double vEnd, double dTotal, double vTop, double accel, double decel) throws ReservationCheckException
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 decelerationif
- no solution is found.ReservationCheckException
Copyright © 2013. All rights reserved.