|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.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 | |
protected static double[] |
factors
Conversion table. |
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 |
AMOUNT_OF_SUBSTANCE, COMPLETE, derivation, DEVOID, DIMENSIONLESS, ELECTRIC_CURRENT, LENGTH, LUMINOUS_INTENSITY, MASS, SPATIALLYINTERPOLATED, TEMPORALLYINTERPOLATED, THERMODYNAMIC_TEMPERATURE, TIME, 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). |
protected int |
getDimensionSI()
Gets the SI dimension of this Acceleration. |
double |
getValue(int unit)
Gets the acceleration in the specified unit. |
protected double |
getValueSI()
Gets the acceleration in SI units. |
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, getSymbolSI, isSpatiallyInterpolated, isTemporallyInterpolated, multiply, toComposite, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, 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
protected static final double[] factors
| 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),
Comparableprotected double getValueSI()
getValueSI in class AbstractQuantityprotected int getDimensionSI()
getDimensionSI in class AbstractQuantity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||