|
||||||||||
| 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.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 |
AMOUNT_OF_SUBSTANCE, COMPLETE, derivation, DEVOID, DIMENSIONLESS, ELECTRIC_CURRENT, LENGTH, LUMINOUS_INTENSITY, MASS, SPATIALLYINTERPOLATED, TEMPORALLYINTERPOLATED, THERMODYNAMIC_TEMPERATURE, TIME, 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). |
protected int |
getDimensionSI()
Gets the SI dimension of this Temperature. |
double |
getValue(TemperatureUnit unit)
Gets the temperature in the specified unit. |
protected double |
getValueSI()
Gets the temperature in degrees Kelvin. |
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, getSymbolSI, isSpatiallyInterpolated, isTemporallyInterpolated, multiply, toComposite, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, 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),
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 | |||||||||