|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aim4.vehicle.AccelProfile
public class AccelProfile
The acceleration profile.
Nested Class Summary | |
---|---|
static class |
AccelProfile.DurAccel
A pair of acceleration and duration. |
Constructor Summary | |
---|---|
AccelProfile()
Create an acceleration profile. |
Method Summary | |
---|---|
void |
add(double dur,
double acc)
Add a duration and acceleration pair to the profile. |
List<AccelProfile.DurAccel> |
getDurAccelList()
Get the list of the acceleration-duration pairs. |
int |
size()
Get the number of acceleration-duration pairs in the profile. |
AccelSchedule |
toAccelSchedule(double initTime)
Convert the acceleration profile to an acceleration schedule. |
AccelSchedule |
toAccelSchedule(double initTime,
double lastAccel)
Convert the acceleration profile to an acceleration schedule. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccelProfile()
Method Detail |
---|
public void add(double dur, double acc)
dur
- the durationacc
- the accelerationpublic int size()
public List<AccelProfile.DurAccel> getDurAccelList()
public AccelSchedule toAccelSchedule(double initTime)
initTime
- the initial time of the acceleration schedulepublic AccelSchedule toAccelSchedule(double initTime, double lastAccel)
initTime
- the initial time of the acceleration schedulelastAccel
- the last acceleration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |