aim4.vehicle
Class AccelProfile.DurAccel

java.lang.Object
  extended by aim4.vehicle.AccelProfile.DurAccel
Enclosing class:
AccelProfile

public static class AccelProfile.DurAccel
extends Object

A pair of acceleration and duration.


Constructor Summary
AccelProfile.DurAccel(double duration, double acceleration)
          Create a pair of acceleration and duration
 
Method Summary
 double getAcceleration()
          Get the acceleration.
 double getDuration()
          Get the duration.
 void setAcceleration(double acceleration)
          Set the acceleration.
 void setDuration(double duration)
          Set the duration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccelProfile.DurAccel

public AccelProfile.DurAccel(double duration,
                             double acceleration)
Create a pair of acceleration and duration

Parameters:
duration - the duration
acceleration - the acceleration
Method Detail

getDuration

public double getDuration()
Get the duration.

Returns:
the duration

getAcceleration

public double getAcceleration()
Get the acceleration.

Returns:
the acceleration

setDuration

public void setDuration(double duration)
Set the duration.

Parameters:
duration - the duration

setAcceleration

public void setAcceleration(double acceleration)
Set the acceleration.

Parameters:
acceleration - the acceleration


Copyright © 2011. All Rights Reserved.