|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IUnit
Interface describing a Unit
Method Summary | |
---|---|
boolean |
canConvert(IUnit other)
Check if amount of the specified unit can be converted into amount of this unit. |
double |
convert(double value,
IUnit targetUnit)
Convert a value in this unit to the given unit if possible. |
IUnit |
getBaseType()
|
double |
getScale()
|
boolean |
isBaseType()
|
double |
toBaseUnits(double value)
Convert a value in this unit to the base unit, e.g. degree->radians |
Methods inherited from interface org.deegree.cs.CRSResource |
---|
addAreaOfUse, addName, getAreaOfUse, getAreaOfUseBBox, getAreasOfUse, getCode, getCodeAndName, getCodes, getDescription, getDescriptions, getName, getNames, getOrignalCodeStrings, getVersion, getVersions, hasCode, hasId, hasIdOrName, setDefaultAreaOfUse, setDefaultDescription, setDefaultId, setDefaultName, setDefaultVersion |
Methods inherited from interface org.deegree.commons.tom.Object |
---|
getId |
Method Detail |
---|
boolean canConvert(IUnit other)
other
-
double convert(double value, IUnit targetUnit)
value
- to be convertedtargetUnit
- to convert to
IllegalArgumentException
- if no conversion can be applied.double toBaseUnits(double value)
value
- to be converted
double getScale()
IUnit getBaseType()
boolean isBaseType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |