|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Value
Abstraction for the value a measured or calculated physical quantity.
| Method Summary | |
|---|---|
StringBuffer |
format(StringBuffer buf)
Format this Value |
double |
getDouble()
Get the value as a double |
double |
getDouble(ucar.units.Unit outputUnit)
Get the double value in a different Unit |
float |
getFloat()
Get the float value |
float |
getFloat(ucar.units.Unit outputUnit)
Get the float value in a different Unit |
int |
getInt()
Get the value (as an integer) for this Value |
int |
getInt(ucar.units.Unit outputUnit)
Get the value in a different Unit |
ucar.units.Unit |
getUnit()
Get the Unit for this Value |
| Method Detail |
|---|
ucar.units.Unit getUnit()
Unit for this Value
int getInt()
int getInt(ucar.units.Unit outputUnit)
throws ucar.units.ConversionException
outputUnit - new unit
ucar.units.ConversionException - incompatible unitsfloat getFloat()
float getFloat(ucar.units.Unit outputUnit)
throws ucar.units.ConversionException
outputUnit - new Unit
ucar.units.ConversionException - problem with conversiondouble getDouble()
double getDouble(ucar.units.Unit outputUnit)
throws ucar.units.ConversionException
outputUnit - new Unit
ucar.units.ConversionException - problem with conversionStringBuffer format(StringBuffer buf)
buf - input/output buffer
buf with formatted data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||