Package ucar.units
Interface UnitSystem
-
- All Known Implementing Classes:
SI,UnitSystemImpl
public interface UnitSystemInterface for a system of units.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BaseUnitgetBaseUnit(BaseQuantity quantity)Returns the base unit corresponding to a base quantity.UnitDBgetBaseUnitDB()Returns the database of base units.UnitDBgetUnitDB()Returns the complete database of units (base units and derived units acceptable for use in the system of units.
-
-
-
Method Detail
-
getBaseUnitDB
UnitDB getBaseUnitDB()
Returns the database of base units.- Returns:
- The database of base units.
-
getUnitDB
UnitDB getUnitDB()
Returns the complete database of units (base units and derived units acceptable for use in the system of units.- Returns:
- The complete database of units.
-
getBaseUnit
BaseUnit getBaseUnit(BaseQuantity quantity)
Returns the base unit corresponding to a base quantity.- Parameters:
quantity- A base quantity.- Returns:
- The base unit corresponding to the base
quantity or
nullif no such unit exists.
-
-