|
|||||||||||
| 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.Composite
This class represents a combination of several quantities.
| Field Summary |
| Fields inherited from class net.agmodel.physical.AbstractQuantity |
COMPLETE, DEVOID, SPATIALLYINTERPOLATED, TEMPORALLYINTERPOLATED, UNINTERPOLATED |
| Method Summary | |
Composite |
add(Composite x)
Returns a Composite whose value is (this + x). |
int |
compareTo(Composite x)
Compares this Composite with the specified Composite. |
int |
compareTo(Object o)
Compares this Composite with the specified Object. |
Composite |
divide(double coefficient)
Returns a Composite whose value is (this / coefficient). |
double |
getValueSI()
Gets the quantity in SI units. |
Composite |
inverse()
Returns the Composite whose value is (1 / this). |
Composite |
multiply(double coefficient)
Returns a Composite whose value is (this * coefficient). |
Composite |
subtract(Composite x)
Returns a Composite 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 |
| Method Detail |
public Composite add(Composite x)
x - the Composite to be added.
UnitDimensionException - different unit dimensionspublic Composite subtract(Composite x)
x - the Composite to be subtracted.
UnitDimensionException - different unit dimensionspublic Composite multiply(double coefficient)
coefficient - the dimensionless multiplier.
public Composite divide(double coefficient)
coefficient - the dimensionless divisor.
ArithmeticException - coefficient == 0.0public Composite inverse()
ArithmeticException - this.getValueSI() == 0.0public int compareTo(Composite x)
x - Composite to which this Composite is to be compared.
UnitDimensionException - different unit dimensionspublic int compareTo(Object o)
compareTo in interface Comparableo - Object to which this Composite is to be compared.
ClassCastException - o is not a Composite.compareTo(Composite),
Comparablepublic double getValueSI()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||