Package | Description |
---|---|
ucar.units |
Provides support for parsing and formatting string unit specification,
converting numerical values between compatible units, and performing arithmetic
on units (such as dividing one unit by another).
|
Modifier and Type | Method and Description |
---|---|
Unit |
StandardUnitFormat.basicExpr(UnitDB unitDB) |
static SI |
SI.instance()
Returns an instance of the SI system of units.
|
static UnitSystem |
UnitSystemManager.instance()
Returns an instance of the system of units.
|
Unit |
StandardUnitFormat.logExpr(UnitDB unitDB) |
Unit |
UnitFormat.parse(String spec)
Parses a unit specification.
|
Unit |
UnitFormatImpl.parse(String spec)
Parses a unit specification.
|
Unit |
UnitFormat.parse(String spec,
UnitDB unitDB)
Parses a unit specification.
|
Unit |
StandardUnitFormat.parse(String spec,
UnitDB unitDB)
Decodes a unit specification.
|
Unit |
StandardUnitFormat.powerExpr(UnitDB unitDB) |
Unit |
StandardUnitFormat.productExpr(UnitDB unitDB) |
static void |
UnitSystemManager.setInstance(UnitSystem instance)
Sets the system of units.
|
Unit |
StandardUnitFormat.shiftExpr(UnitDB unitDB) |
Unit |
StandardUnitFormat.unitIdentifier(UnitDB unitDB) |
Unit |
StandardUnitFormat.unitSpec(UnitDB unitDB) |
Constructor and Description |
---|
TimeScaleUnit(Unit unit,
Date origin)
Constructs from a reference unit and a time origin.
|
TimeScaleUnit(Unit unit,
Date origin,
UnitName id)
Constructs from a reference unit, a time origin, and an identifier.
|
Copyright © 1999–2018 UCAR/Unidata. All rights reserved.