|
|||||||||||
| 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.Radiation
This class represents rate at which radiant energy is incident on an area.
| Field Summary |
| Fields inherited from class net.agmodel.physical.AbstractQuantity |
COMPLETE, DEVOID, SPATIALLYINTERPOLATED, TEMPORALLYINTERPOLATED, 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). |
double |
getValue(RadiationUnit unit)
Gets the Radiation in the specified unit. |
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, isSpatiallyInterpolated, isTemporallyInterpolated, multiply, toComposite, toString |
| Methods inherited from class java.lang.Object |
equals, 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),
Comparable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||