|
|||||||||||
| 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.Temperature
This class represents the degree of hotness or coldness of a body or an environment
| Field Summary |
| Fields inherited from class net.agmodel.physical.AbstractQuantity |
COMPLETE, DEVOID, SPATIALLYINTERPOLATED, TEMPORALLYINTERPOLATED, UNINTERPOLATED |
| Constructor Summary | |
Temperature(Composite c)
Temperature constructor from Composite quantity. |
|
Temperature(double value,
TemperatureUnit unit)
Temperature constructor. |
|
| Method Summary | |
Temperature |
add(Temperature x)
Returns a Temperature whose value is (this + x). |
int |
compareTo(Object o)
Compares this Temperature with the specified Object. |
int |
compareTo(Temperature x)
Compares this Temperature with the specified Temperature. |
Temperature |
divide(double coefficient)
Returns a Temperature whose value in degree Kelvin is (this / coefficient). |
double |
getValue(TemperatureUnit unit)
Gets the temperature in the specified unit. |
Temperature |
multiply(double coefficient)
Returns a Temperature whose value in degree Kelvin is (this * coefficient). |
void |
setValue(double value,
TemperatureUnit unit)
Sets this Temperature using the specified unit. |
Temperature |
substract(Temperature x)
Returns a Temperature 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 |
| Constructor Detail |
public Temperature(double value,
TemperatureUnit unit)
value - the temperature in the specified unit.unit - the measurement unit being used.
RuntimeException - unknown measurement unitpublic Temperature(Composite c)
c - the quantity to convert.
UnitDimensionException - composite is not a temperature.Composite| Method Detail |
public double getValue(TemperatureUnit unit)
unit - the measurement unit being used.
RuntimeException - unknown measurement unit
public void setValue(double value,
TemperatureUnit unit)
value - the new temperature in the specified unit.unit - the measurement unit being used.
RuntimeException - unknown measurement unitpublic Temperature add(Temperature x)
x - the Temperature to be added.
public Temperature substract(Temperature x)
x - the Temperature to be substracted.
public Temperature multiply(double coefficient)
coefficient - the dimensionless multiplier.
public Temperature divide(double coefficient)
coefficient - the dimensionless divisor.
ArithmeticException - coefficient == 0.0public int compareTo(Temperature x)
x - Temperature to which this Temperature is to be compared.
public int compareTo(Object o)
compareTo in interface Comparableo - Object to which this Temperature is to be compared.
ClassCastException - o is not a Temperature.compareTo(Temperature),
Comparable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||