|
||||||||||
| 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.Radiation
This class represents rate at which radiant energy is incident on an area.
| 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 | |
Radiation(Composite c)
Radiation constructor from Composite quantity. |
|
Radiation(double value,
RadiationUnit unit)
Radiation constructor. |
|
| Method Summary | |
Radiation |
add(Radiation x)
Returns an Radiation whose value is (this + x). |
int |
compareTo(Object o)
Compares this Radiation with the specified Object. |
int |
compareTo(Radiation x)
Compares this Radiation with the specified Radiation. |
Radiation |
divide(double coefficient)
Returns an Radiation whose value is (this / coefficient). |
protected int |
getDimensionSI()
Gets the SI dimension of this Radiation. |
double |
getValue(RadiationUnit unit)
Gets the Radiation in the specified unit. |
protected double |
getValueSI()
Gets the Radiation in SI units. |
Radiation |
multiply(double coefficient)
Returns an Radiation whose value is (this * coefficient). |
void |
setValue(double value,
RadiationUnit unit)
Sets this Radiation using the specified unit. |
Radiation |
substract(Radiation x)
Returns an Radiation 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 Radiation(double value,
RadiationUnit unit)
value - the Radiation in the specified unit.unit - the measurement unit being used.
ArrayIndexOutOfBoundsException - unknown measurement unitpublic Radiation(Composite c)
c - the quantity to convert.
UnitDimensionException - composite is not an Radiation.Composite| Method Detail |
public double getValue(RadiationUnit unit)
unit - the measurement unit being used.
ArrayIndexOutOfBoundsException - unknown measurement unit
public void setValue(double value,
RadiationUnit unit)
value - the new Radiation in the specified unit.unit - the measurement unit being used.
ArrayIndexOutOfBoundsException - unknown measurement unitpublic Radiation add(Radiation x)
x - the Radiation to be added.
public Radiation substract(Radiation x)
x - the Radiation to be substracted.
public Radiation multiply(double coefficient)
coefficient - the dimensionless multiplier.
public Radiation divide(double coefficient)
coefficient - the dimensionless divisor.
ArithmeticException - coefficient == 0.0public int compareTo(Radiation x)
x - Radiation to which this Radiation is to be compared.
public int compareTo(Object o)
compareTo in interface Comparableo - Object to which this Radiation is to be compared.
ClassCastException - o is not a Radiation.compareTo(Radiation),
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 | |||||||||