|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.agmodel.physical.AbstractQuantity
net.agmodel.physical.Acceleration
This class represents the rate of change of speed with respect to time.
Speed,
Duration,
Serialized Form| Field Summary | |
static int |
METERS_PER_SQUARE_SECOND
Used to specify meter per square second unit. |
static int |
METRES_PER_SQUARE_SECOND
|
| Fields inherited from class net.agmodel.physical.AbstractQuantity |
COMPLETE, DEVOID, SPATIALLYINTERPOLATED, TEMPORALLYINTERPOLATED, UNINTERPOLATED |
| Constructor Summary | |
Acceleration(Composite c)
Acceleration constructor from Composite quantity. |
|
Acceleration(double value,
int unit)
Acceleration constructor. |
|
| Method Summary | |
Acceleration |
add(Acceleration x)
Returns an Acceleration whose value is (this + x). |
int |
compareTo(Acceleration x)
Compares this Acceleration with the specified Acceleration. |
int |
compareTo(Object o)
Compares this Acceleration with the specified Object. |
Acceleration |
divide(double coefficient)
Returns an Acceleration whose value is (this / coefficient). |
double |
getValue(int unit)
Gets the acceleration in the specified unit. |
Acceleration |
multiply(double coefficient)
Returns an Acceleration whose value is (this * coefficient). |
Speed |
multiply(Duration d)
Returns a Speed whose value is (this * d). |
void |
setValue(double value,
int unit)
Sets this Acceleration using the specified unit. |
Acceleration |
substract(Acceleration x)
Returns an Acceleration whose value is (this - x). |
| Methods inherited from class net.agmodel.physical.AbstractQuantity |
clone, divide, isSpatiallyInterpolated, isTemporallyInterpolated, multiply, toComposite, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int METERS_PER_SQUARE_SECOND
public static final int METRES_PER_SQUARE_SECOND
| Constructor Detail |
public Acceleration(double value,
int unit)
value - the acceleration in the specified unit.unit - the measurement unit being used.
ArrayIndexOutOfBoundsException - unknown measurement unitpublic Acceleration(Composite c)
c - the quantity to convert.
UnitDimensionException - composite is not an acceleration.Composite| Method Detail |
public double getValue(int unit)
unit - the measurement unit being used.
ArrayIndexOutOfBoundsException - unknown measurement unit
public void setValue(double value,
int unit)
value - the new acceleration in the specified unit.unit - the measurement unit being used.
ArrayIndexOutOfBoundsException - unknown measurement unitpublic Acceleration add(Acceleration x)
x - the Acceleration to be added.
public Acceleration substract(Acceleration x)
x - the Acceleration to be substracted.
public Acceleration multiply(double coefficient)
coefficient - the dimensionless multiplier.
public Acceleration divide(double coefficient)
coefficient - the dimensionless divisor.
ArithmeticException - coefficient == 0.0public Speed multiply(Duration d)
d - the duration multiplier.
public int compareTo(Acceleration x)
x - Acceleration to which this Acceleration is to be compared.
public int compareTo(Object o)
compareTo in interface Comparableo - Object to which this Acceleration is to be compared.
ClassCastException - o is not a Acceleration.compareTo(Acceleration),
Comparable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||