Package org.apache.sis.measure
package org.apache.sis.measure
Units of measurements, values related to measurement (like angles and ranges) and their formatters.
A key class in this package is
Units
, which provides static constants
for about 50 units of measurement including all the SI base units
(metre,
kilogram
second,
ampere,
kelvin,
mole and
candela)
together with some derived units
(square metre,
cubic metre,
metres per second,
hertz,
pascal,
newton,
joule,
watt,
tesla,
etc.)
and some dimensionless units
(radian,
steradian,
pixel,
unity).
In relation to units of measurement, this package also defines:
- Quantities
as a
double
value value associated to aUnit
instance. Angle
and its subclasses (Longitude
,Latitude
,ElevationAngle
)Range
and its subclasses (NumberRange
,MeasurementRange
) or annotation (ValueRange
)- Parsers and formatters
(
AngleFormat
,RangeFormat
,UnitFormat
)
Power
, not just Quantity<Power>
(the generic parent).
Parsing and formatting use Unicode symbols by default, as in µg/m². Parenthesis are recognized at parsing time and used for denominators at formatting time, as in kg/(m²⋅s). While uncommon, Apache SIS accepts fractional powers as in m^⅔. Some sentences like "100 feet", "square metre" and "degree Kelvin" are also recognized at parsing time.
- Since:
- 0.3
- Version:
- 1.3
-
ClassDescriptionBase class of unit converters.AbstractUnit<Q extends javax.measure.Quantity<Q>>Base class of all unit implementations.An angle in decimal degrees.Parses and formats angles according a specified pattern.Constants that are used as attribute keys in the iterator returned from
AngleFormat.formatToCharacterIterator(Object)
.The rate of change of an angular displacement with respect to time.The concatenation of two unit converters where at least one of them is not linear.ConventionalUnit<Q extends javax.measure.Quantity<Q>>A unit of measure which is related to a base or derived unit through a conversion formula.DerivedScalar<Q extends javax.measure.Quantity<Q>>A quantity related to a scalar by an arbitrary (not necessarily linear) conversion.DerivedScalar.Fallback<Q extends javax.measure.Quantity<Q>>Fallback used when noDerivedScalar
implementation is available for a given quantity type.A temperature in Celsius degrees or any other units having an offset compared to Kelvin.The angular height of an object measured from the horizontal plane.Base class of format fields.The attributed character iterator to be returned byFormat
implementations in theorg.apache.sis.measure
package.Holds a field value, together with the run range in which this value is valid.The object converter to use for filtering the keys in the map returned byFormattedCharacterIterator.getAttributes()
.The object converter to use for extractingFormattedCharacterIterator.Entry.value
in the map returned byFormattedCharacterIterator.getAttributes()
.Linear converter with a scale factor of 1 and an offset of 0.A latitude angle in decimal degrees.Conversions between units that can be represented by a linear operation (scale or offset).A longitude angle in decimal degrees.A range of numbers associated with a unit of measurement.A range of numbers capable of widening conversions when performing range operations.Conversions from units represented by a logarithm in base 10.Inverse ofPowerOf10
.Utility methods related to the management of prefixes.Provides static methods working onQuantity
instances.Parses and formats numbers with units of measurement.Range<E extends Comparable<? super E>>A set of minimum and maximum values of a certain class, allowing a user to determine if a value of the same class is contained inside the range.Parses and formatsRange
instances according the given locale.Constants that are used as attribute keys in the iterator returned fromRangeFormat.formatToCharacterIterator(Object)
.The Practical Salinity Scale (PSS-78).Scalar<Q extends javax.measure.Quantity<Q>>A quantity representable by position on a scale or line, having only magnitude.ScalarFactory<Q extends javax.measure.Quantity<Q>>Creates quantities for the given value and unit of measurement.ScalarFallback<Q extends javax.measure.Quantity<Q>>Fallback used when noScalar
implementation is available for a given quantity type.The rate of change of a scale factor, in unity per second.A converter from decimal degrees to sexagesimal degrees.The inverse ofSexagesimalConverter
, i.e.SystemUnit<Q extends javax.measure.Quantity<Q>>Implementation of base, alternate and derived units (seeAbstractUnit
for a description of unit kinds).The converter for replacing the keys in theSystemUnit.getBaseUnits()
map fromUnitDimension
instances toSystemUnit
instances.Dimension (length, mass, time, etc.) of a unit of measurement.Parses and formats units of measurement as SI symbols, URI in OGC namespace or other symbols.Represents an operation to be applied between two terms parsed byUnitFormat.parseTerm(CharSequence, int, int, Operation)
.Parse position when text to be parsed is expected to contain nothing else than a unit symbol.Identify whether unit formatting uses ASCII symbols, Unicode symbols or full localized names.Lookup mechanism for finding a units from its quantity, dimension or symbol.Provides constants for various Units of Measurement together with static methods working onUnit
instances.The central point from which all unit services (parsing, formatting, listing, etc) can be obtained.The range of values assignable to a field, or to a JavaBean property.