|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Unit | |
---|---|
ucar.nc2.units | Utility classes for scientific units and ucar.units package. |
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). |
Uses of Unit in ucar.nc2.units |
---|
Fields in ucar.nc2.units declared as Unit | |
---|---|
protected static Unit |
SimpleUnit.dateReferenceUnit
|
protected static Unit |
SimpleUnit.secsUnit
|
protected Unit |
SimpleUnit.uu
|
Methods in ucar.nc2.units that return Unit | |
---|---|
Unit |
SimpleUnit.getUnit()
Get underlying ucar.units.Unit. |
protected static Unit |
SimpleUnit.makeUnit(String name)
|
Methods in ucar.nc2.units with parameters of type Unit | |
---|---|
static boolean |
SimpleUnit.isDateUnit(Unit uu)
Return true if this ucar.units.Unit is a Date. |
static boolean |
SimpleUnit.isTimeUnit(Unit uu)
Return true if this ucar.units.Unit is convertible to secs. |
Uses of Unit in ucar.units |
---|
Subinterfaces of Unit in ucar.units | |
---|---|
interface |
DerivedUnit
Interface for derived units. |
Classes in ucar.units that implement Unit | |
---|---|
class |
BaseUnit
Provides support for base units. |
class |
DerivedUnitImpl
Provides support for a concrete implementation of derived units. |
class |
LogarithmicUnit
Provides support for units that are based on a logarithm of the ratio of a physical quantity to an underlying reference level. |
class |
OffsetUnit
Provides support for units that are offset from reference units (ex: as the unit "degree Celsius" is offset from the reference unit "kelvin"). |
class |
ScaledUnit
Provides support for a unit that is a mutiplicative factor of a reference unit. |
class |
TimeScaleUnit
Provides support for a reference time unit whose origin is at a certain time. |
class |
UnitImpl
Provides support for classes that implement units. |
class |
UnknownUnit
Provides support for unknown base units. |
Fields in ucar.units declared as Unit | |
---|---|
static Unit |
SI.AMOUNT_OF_SUBSTANCE_UNIT
The unit corresponding to the quantity of amount of substance. |
static Unit |
SI.ANGSTROM
Special derived unit -- temporarily accepted for use with the SI -- for the quantity of length. |
static Unit |
SI.ARC_DEGREE
Special derived unit -- accepted for use with the SI -- for the quantity of plane angle. |
static Unit |
SI.ARC_MINUTE
Special derived unit -- accepted for use with the SI -- for the quantity of plane angle. |
static Unit |
SI.ARC_SECOND
Special derived unit -- accepted for use with the SI -- for the quantity of plane angle. |
static Unit |
SI.ARE
Special derived unit -- temporarily accepted for use with the SI -- for the quantity of area. |
static Unit |
SI.BAR
Special derived unit -- temporarily accepted for use with the SI -- for the quantity of pressure. |
static Unit |
SI.BARN
Special derived unit -- temporarily accepted for use with the SI -- for the quantity of area. |
static Unit |
SI.BECQUEREL
Special derived unit for the quantity of activity of a radionuclide. |
static Unit |
SI.COULOMB
Special derived unit for the quantity of electric charge or quantity of electricity. |
static Unit |
SI.CURIE
Special derived unit -- temporarily accepted for use with the SI until the year 2000 according to the USA National Institute of Standards and Technology -- for the quantity of activity of a radionuclide. |
static Unit |
SI.DAY
Special derived unit -- accepted for use with the SI -- for the quantity of time. |
static Unit |
SI.DEGREE_CELSIUS
Special derived unit for the quantity of Celsius temperature. |
static Unit |
SI.ELECTRIC_CURRENT_UNIT
The unit corresponding to the quantity of electric current. |
static Unit |
SI.FARAD
Special derived unit for the quantity of electric capacitance. |
static Unit |
SI.GAL
Special derived unit -- temporarily accepted for use with the SI -- for the quantity of acceleration. |
static Unit |
SI.GRAY
Special derived unit for the quantity of absorbed dose, specific energy (imparted), or kerms. |
static Unit |
SI.HECTARE
Special derived unit -- temporarily accepted for use with the SI -- for the quantity of area. |
static Unit |
SI.HENRY
Special derived unit for the quantity of inductance. |
static Unit |
SI.HERTZ
Special derived unit for the quantity of frequency. |
static Unit |
SI.HOUR
Special derived unit -- accepted for use with the SI -- for the quantity of time. |
static Unit |
SI.JOULE
Special derived unit for the quantity of energy, work, or quantity of heat. |
static Unit |
SI.KNOT
Special derived unit -- temporarily accepted for use with the SI -- for the quantity of speed. |
static Unit |
SI.LENGTH_UNIT
The unit corresponding to the quantity of length. |
static Unit |
SI.LITER
Special derived unit -- accepted for use with the SI -- for the quantity of volume. |
static Unit |
SI.LITRE
Synomym for LITER . |
static Unit |
SI.LUMEN
Special derived unit for the quantity of luminous flux. |
static Unit |
SI.LUMINOUS_INTENSITY_UNIT
The unit corresponding to the quantity of luminous intensity. |
static Unit |
SI.LUX
Special derived unit for the quantity of illuminance. |
static Unit |
SI.MASS_UNIT
The unit corresponding to the quantity of mass. |
static Unit |
SI.METRIC_TON
Special derived unit -- accepted for use with the SI -- for the quantity of mass. |
static Unit |
SI.MINUTE
Special derived unit -- accepted for use with the SI -- for the quantity of time. |
static Unit |
SI.NAUTICAL_MILE
Special derived unit -- temporarily accepted for use with the SI -- for the quantity of length. |
static Unit |
SI.NEWTON
Special derived unit for the quantity of force. |
static Unit |
SI.OHM
Special derived unit for the quantity of electric resistance. |
static Unit |
SI.PASCAL
Special derived unit for the quantity of pressure or stress. |
static Unit |
SI.PLANE_ANGLE_UNIT
The unit corresponding to the quantity of plane angle. |
static Unit |
SI.RAD
Special derived unit -- temporarilty accepted for use with the SI until the year 2000 according to the USA National Institute of Standards and Technology -- for the quantity of absorbed dose. |
static Unit |
SI.REM
Special derived unit -- temporarilty accepted for use with the SI until the year 2000 according to the USA National Institute of Standards and Technology -- for the quantity of equivalent absorbed dose. |
static Unit |
SI.ROENTGEN
Special derived unit -- temporarily accepted for use with the SI until the year 2000 according to the USA National Institute of Standards and Technology -- for the quantity of electric charge per mass. |
static Unit |
SI.SIEMENS
Special derived unit for the quantity of electric conductance. |
static Unit |
SI.SIEVERT
Special derived unit for the quantity of dose equivalent, ambient dose equivalent, directional dose equivalent, personal dose equivalent, or equivalent dose. |
static Unit |
SI.SOLID_ANGLE_UNIT
The unit corresponding to the quantity of solid angle. |
static Unit |
SI.TESLA
Special derived unit for the quantity of magnetic flux density. |
static Unit |
SI.THERMODYNAMIC_TEMPERATURE_UNIT
The unit corresponding to the quantity of thermodynamic temperature. |
static Unit |
SI.TIME_UNIT
The unit corresponding to the quantity of time. |
static Unit |
SI.TONNE
Synomym for METRIC_TON . |
static Unit |
SI.VOLT
Special derived unit for the quantity of electric potential, potential difference, or electromotive force. |
static Unit |
SI.WATT
Special derived unit for the quantity of power or radiant flux. |
static Unit |
SI.WEBER
Special derived unit for the quantity of magnetic flux. |
Methods in ucar.units that return Unit | |
---|---|
Unit |
StandardUnitFormat.basicExpr(UnitDB unitDB)
|
Unit |
ScaledUnit.clone(UnitName id)
Clones this unit, changing the identifier. |
Unit |
TimeScaleUnit.clone(UnitName id)
Clones this unit, changing the identifier. |
Unit |
DerivedUnitImpl.clone(UnitName id)
Clones the derived unit changing the identifiers. |
Unit |
Unit.clone(UnitName id)
Clones this unit, changing the identifier. |
Unit |
LogarithmicUnit.clone(UnitName id)
Clones this unit, changing the identifier. |
Unit |
OffsetUnit.clone(UnitName id)
Clones this unit, changing the identifier. |
Unit |
UnitImpl.divideBy(Unit that)
Divides this unit by another. |
Unit |
Unit.divideBy(Unit that)
Divides this unit by another. |
Unit |
UnitImpl.divideInto(Unit that)
Divides this unit into another. |
Unit |
Unit.divideInto(Unit that)
Divides this unit into another. |
Unit |
UnitDBImpl.get(String id)
Gets a unit by either name, plural, or symbol. |
Unit |
UnitDB.get(String id)
Gets the unit in the database whose name, plural, or symbol, match an identifier. |
Unit |
UnitDBImpl.getByName(String name)
Gets a unit by name. |
Unit |
UnitDB.getByName(String name)
Gets a unit in the database by name. |
Unit |
UnitDBImpl.getBySymbol(String symbol)
Gets a unit by symbol. |
Unit |
UnitDB.getBySymbol(String symbol)
Gets a unit in the database by symbol. |
Unit |
ScaledUnit.getUnit()
Returns the reference unit. |
Unit |
TimeScaleUnit.getUnit()
Returns the reference unit. |
Unit |
OffsetUnit.getUnit()
Returns the reference unit. |
Unit |
UnitImpl.log(double base)
|
Unit |
Unit.log(double base)
Returns a logarithmic unit whose reference level is equal to this unit. |
Unit |
StandardUnitFormat.logExpr(UnitDB unitDB)
|
Unit |
ScaledUnit.multiplyBy(double scale)
|
Unit |
UnitImpl.multiplyBy(double scale)
|
Unit |
Unit.multiplyBy(double scale)
Multiplies this unit by a scale factor. |
Unit |
OffsetUnit.multiplyBy(double scale)
|
Unit |
UnitImpl.multiplyBy(Unit that)
Multiplies this unit by another. |
Unit |
Unit.multiplyBy(Unit that)
Multiplies this unit by another. |
protected Unit |
ScaledUnit.myDivideBy(Unit that)
Divides this unit by another unit. |
protected abstract Unit |
UnitImpl.myDivideBy(Unit unit)
Divides this unit by another. |
protected Unit |
TimeScaleUnit.myDivideBy(Unit that)
Divides this unit by another unit. |
protected Unit |
DerivedUnitImpl.myDivideBy(Unit that)
Divides this derived unit by another. |
protected Unit |
LogarithmicUnit.myDivideBy(Unit that)
Divide this unit by another unit. |
protected Unit |
OffsetUnit.myDivideBy(Unit that)
Divide this unit by another unit. |
protected Unit |
ScaledUnit.myDivideInto(Unit that)
Divides this unit into another unit. |
protected abstract Unit |
UnitImpl.myDivideInto(Unit unit)
Divides this unit into another. |
protected Unit |
TimeScaleUnit.myDivideInto(Unit that)
Divides this unit into another unit. |
protected Unit |
DerivedUnitImpl.myDivideInto(Unit that)
Divides this derived unit into another. |
protected Unit |
LogarithmicUnit.myDivideInto(Unit that)
Divide this unit into another unit. |
protected Unit |
OffsetUnit.myDivideInto(Unit that)
Divide this unit into another unit. |
protected Unit |
ScaledUnit.myMultiplyBy(Unit that)
Multiplies this unit by another unit. |
protected abstract Unit |
UnitImpl.myMultiplyBy(Unit that)
Multiplies this unit by another. |
protected Unit |
TimeScaleUnit.myMultiplyBy(Unit that)
Multiplies this unit by another unit. |
protected Unit |
DerivedUnitImpl.myMultiplyBy(Unit that)
Multiplies this derived unit by another. |
protected Unit |
LogarithmicUnit.myMultiplyBy(Unit that)
Multiply this unit by another unit. |
protected Unit |
OffsetUnit.myMultiplyBy(Unit that)
Multiply this unit by another unit. |
protected Unit |
ScaledUnit.myRaiseTo(int power)
Raises this unit to a power. |
protected abstract Unit |
UnitImpl.myRaiseTo(int power)
Raises this unit to a power. |
protected Unit |
TimeScaleUnit.myRaiseTo(int power)
Raises this unit to a power. |
protected Unit |
DerivedUnitImpl.myRaiseTo(int power)
Raises this derived unit to a power. |
protected Unit |
LogarithmicUnit.myRaiseTo(int power)
Raise this unit to a power. |
protected Unit |
OffsetUnit.myRaiseTo(int power)
Raise this unit to a power. |
Unit |
UnitFormatImpl.parse(String spec)
Parses a unit specification. |
Unit |
UnitFormat.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)
|
Unit |
UnitImpl.raiseTo(int power)
Raises this unit to a power. |
Unit |
Unit.raiseTo(int power)
Raises this unit to a power. |
Unit |
StandardUnitFormat.shiftExpr(UnitDB unitDB)
|
Unit |
UnitImpl.shiftTo(Date origin)
|
Unit |
TimeScaleUnit.shiftTo(Date origin)
|
Unit |
Unit.shiftTo(Date origin)
Returns a unit identical to this instance but whose origin (i.e., zero value) has been shifted to the given time. |
Unit |
UnitImpl.shiftTo(double origin)
|
Unit |
TimeScaleUnit.shiftTo(double origin)
|
Unit |
Unit.shiftTo(double origin)
Returns a unit identical to this instance but whose origin (i.e., zero value) has been shifted to the given value. |
Unit |
OffsetUnit.shiftTo(double origin)
|
Unit |
StandardUnitFormat.unitIdentifier(UnitDB unitDB)
|
Unit |
StandardUnitFormat.unitSpec(UnitDB unitDB)
|
Methods in ucar.units with parameters of type Unit | |
---|---|
void |
UnitDBImpl.addUnit(Unit unit)
Adds a unit to the database. |
void |
UnitDB.addUnit(Unit unit)
Adds a unit to the database. |
double[] |
UnitImpl.convertTo(double[] amounts,
Unit outputUnit)
Converts numeric values from this unit to another unit. |
double[] |
Unit.convertTo(double[] amounts,
Unit outputUnit)
Converts numerical values from this unit to another unit. |
double[] |
UnitImpl.convertTo(double[] input,
Unit outputUnit,
double[] output)
Converts numeric values from this unit to another unit. |
double[] |
Unit.convertTo(double[] input,
Unit outputUnit,
double[] output)
Converts numerical values from this unit to another unit. |
double |
UnitImpl.convertTo(double amount,
Unit outputUnit)
Converts a numeric value from this unit to another unit. |
double |
Unit.convertTo(double amount,
Unit outputUnit)
Converts a numerical value from this unit to another unit. |
float[] |
UnitImpl.convertTo(float[] amounts,
Unit outputUnit)
Converts numeric values from this unit to another unit. |
float[] |
Unit.convertTo(float[] amounts,
Unit outputUnit)
Converts numerical values from this unit to another unit. |
float[] |
UnitImpl.convertTo(float[] input,
Unit outputUnit,
float[] output)
Converts numeric values from this unit to another unit. |
float[] |
Unit.convertTo(float[] input,
Unit outputUnit,
float[] output)
Converts numerical values from this unit to another unit. |
float |
UnitImpl.convertTo(float amount,
Unit outputUnit)
Converts a numeric value from this unit to another unit. |
float |
Unit.convertTo(float amount,
Unit outputUnit)
Converts a numerical value from this unit to another unit. |
static Converter |
ConverterImpl.create(Unit fromUnit,
Unit toUnit)
Factory method for creating a unit converter. |
Unit |
UnitImpl.divideBy(Unit that)
Divides this unit by another. |
Unit |
Unit.divideBy(Unit that)
Divides this unit by another. |
Unit |
UnitImpl.divideInto(Unit that)
Divides this unit into another. |
Unit |
Unit.divideInto(Unit that)
Divides this unit into another. |
String |
UnitFormatImpl.format(Unit unit)
Formats a unit. |
String |
UnitFormat.format(Unit unit)
Formats a unit. |
StringBuffer |
UnitFormat.format(Unit unit,
StringBuffer buffer)
Appends a formatted unit to a string buffer. |
StringBuffer |
StandardUnitFormat.format(Unit unit,
StringBuffer buf)
Formats a unit. |
Converter |
UnitImpl.getConverterTo(Unit outputUnit)
Gets a Converter for converting numeric values from this unit to another, compatible unit. |
Converter |
TimeScaleUnit.getConverterTo(Unit outputUnit)
Returns a Converter for converting numeric values from this unit to another unit. |
Converter |
Unit.getConverterTo(Unit outputUnit)
Gets a Converter that converts numeric values from this unit to another, compatible unit. |
boolean |
UnitImpl.isCompatible(Unit that)
Indicates if numeric values in this unit are convertible with another unit. |
boolean |
TimeScaleUnit.isCompatible(Unit that)
Indicates if numeric values in this unit are convertible to another unit. |
boolean |
DerivedUnitImpl.isCompatible(Unit that)
Indicates if values in this unit are convertible with another unit. |
boolean |
Unit.isCompatible(Unit that)
Indicates if this unit is compatible with another unit. |
String |
UnitFormatImpl.longFormat(Unit unit)
Formats a unit using a long form. |
String |
UnitFormat.longFormat(Unit unit)
Formats a unit using a long form. |
StringBuffer |
UnitFormat.longFormat(Unit unit,
StringBuffer buffer)
Appends a unit formatted according to the long form to a string buffer. |
StringBuffer |
StandardUnitFormat.longFormat(Unit unit,
StringBuffer buf)
Formats a unit in the underlying system of units. |
Unit |
UnitImpl.multiplyBy(Unit that)
Multiplies this unit by another. |
Unit |
Unit.multiplyBy(Unit that)
Multiplies this unit by another. |
protected Unit |
ScaledUnit.myDivideBy(Unit that)
Divides this unit by another unit. |
protected abstract Unit |
UnitImpl.myDivideBy(Unit unit)
Divides this unit by another. |
protected Unit |
TimeScaleUnit.myDivideBy(Unit that)
Divides this unit by another unit. |
protected Unit |
DerivedUnitImpl.myDivideBy(Unit that)
Divides this derived unit by another. |
protected Unit |
LogarithmicUnit.myDivideBy(Unit that)
Divide this unit by another unit. |
protected Unit |
OffsetUnit.myDivideBy(Unit that)
Divide this unit by another unit. |
protected Unit |
ScaledUnit.myDivideInto(Unit that)
Divides this unit into another unit. |
protected abstract Unit |
UnitImpl.myDivideInto(Unit unit)
Divides this unit into another. |
protected Unit |
TimeScaleUnit.myDivideInto(Unit that)
Divides this unit into another unit. |
protected Unit |
DerivedUnitImpl.myDivideInto(Unit that)
Divides this derived unit into another. |
protected Unit |
LogarithmicUnit.myDivideInto(Unit that)
Divide this unit into another unit. |
protected Unit |
OffsetUnit.myDivideInto(Unit that)
Divide this unit into another unit. |
protected Unit |
ScaledUnit.myMultiplyBy(Unit that)
Multiplies this unit by another unit. |
protected abstract Unit |
UnitImpl.myMultiplyBy(Unit that)
Multiplies this unit by another. |
protected Unit |
TimeScaleUnit.myMultiplyBy(Unit that)
Multiplies this unit by another unit. |
protected Unit |
DerivedUnitImpl.myMultiplyBy(Unit that)
Multiplies this derived unit by another. |
protected Unit |
LogarithmicUnit.myMultiplyBy(Unit that)
Multiply this unit by another unit. |
protected Unit |
OffsetUnit.myMultiplyBy(Unit that)
Multiply this unit by another unit. |
Constructors in ucar.units with parameters of type Unit | |
---|---|
ConversionException(Unit fromUnit,
Unit toUnit)
Constructs from a "from" unit and and "to" unit. |
|
ConverterImpl(Unit fromUnit,
Unit toUnit)
Constructs from a "from" unit and a "to" unit. |
|
DivideException(Unit unit)
Constructs from a unit that can't be divided. |
|
DivideException(Unit numerator,
Unit denominator)
Constructs from dividend and divisor units. |
|
LogarithmicUnit(Unit reference,
double base)
Constructs from a reference level and a logarithmic base. |
|
LogarithmicUnit(Unit reference,
double base,
UnitName id)
Constructs from a reference level, a logarithmic base, and a unit identifier. |
|
MultiplyException(double scale,
Unit unit)
Constructs from a scale factor and a unit. |
|
MultiplyException(Unit unit)
Constructs from a unit that can't be multiplied. |
|
MultiplyException(Unit A,
Unit B)
Constructs from two units. |
|
OffsetUnit(Unit unit,
double offset)
Constructs from a reference unit and an offset. |
|
OffsetUnit(Unit unit,
double offset,
UnitName id)
Constructs from a reference unit, and offset, and a unit identifier. |
|
RaiseException(Unit unit)
Constructs from the unit that couldn't be raised to a power. |
|
ScaledUnit(double scale,
Unit unit)
Constructs from a multiplicative factor and a reference unit. |
|
ScaledUnit(double scale,
Unit unit,
UnitName id)
Constructs from a multiplicative factor, a reference unit, and an identifier. |
|
ShiftException(Unit unit,
Date origin)
Constructs from the unit and the origin. |
|
ShiftException(Unit unit,
double origin)
Constructs from the unit and the origin. |
|
TimeScaleUnit.MyConverter(TimeScaleUnit fromUnit,
Unit toUnit)
|
|
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. |
|
UnitClassException(Unit unit)
Constructs from the unit that's an instance of an unknown class. |
|
UnitExistsException(Unit oldUnit,
Unit newUnit)
Constructs from the existing unit and the redefining unit. |
|
UnitImpl.MyConverter(Unit fromUnit,
Unit toUnit)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |