The Units of Measurement Framework API Bundle implements the com.prosyst.mbs.services.units.SystemOfUnits interface.
The SystemOfUnits interface represents a system of units as a service in the OSGi service registry. The system name is available as a service property with NAME key.
Service Properties
Unique name – Available with SystemOfUnits.getName(). Returns the name assigned to this system of units.
The SystemOfUnits.getUnits() returns a read-only view of all supported units in this system: SI, Imperial, U.S. Customary, Information, Non-SI, SeismicScale, Colors. The unit symbol is unique in the system.
International System of Units is registered as a service in OSGi service registry under SystemOfUnits interface with the unique name SI and is available as a service property. Based mainly on SI Brochure, 8th Edition and extended to support: watt hour, volt ampere and more. SI Prefixes are available as static methods: SI.KILO, SI.CENTI etc.
British Imperial System of Units is registered as a service in OSGi service registry under SystemOfUnits interface with the unique name Imperial and is available as a service property. The units are available as constants in com.prosyst.mbs.services.units.system.Imperial. Based mainly on UK National Archives, The Units of Measurement Regulations 1995 and extended to support rate related units like: gallon per hour.
United States Customary System of Units is registered as a service in OSGi service registry under SystemOfUnits interface with the unique name U.S. Customary and is available as a service property. The units are available as constants in com.prosyst.mbs.services.units.system.USCustomary. Based mainly on National Institute of Standards and Technology, Handbook 44 - 2015 and extended to support rate related units like: gallon per hour.
Information System of Units is registered as a service in OSGi service registry under SystemOfUnits interface with the unique name Information and is available as a service property. The units are available as constants in com.prosyst.mbs.services.units.system.Information. Based mainly on: JEDEC, Terms, Definitions, and Letter Symbols for Microcomputers, Microprocessors, and Memory Integrated Circuits. Binary and decimal prefixes are available as static methods.
Non-SI is registered as a service in OSGi service registry under SystemOfUnits interface with the unique name Non-SI and is available as a service property. The units are available as constants in com.prosyst.mbs.services.units.system.NonSI. Constants for units, which are not applicable to any other system.
SeismicScale is registered as a service in OSGi service registry under SystemOfUnits interface with the unique name Seismic Scale and is available as a service property. The units are available as constants in com.prosyst.mbs.services.units.system.SeismicScale. Constants for units for earthquake measurements with seismic scales. Based mainly on: European Macroseismic Scale, Japan Meteorological Agency (JMA) seismic intensity scale, Modified Mercalli (MM) Intensity scale, China Seismic Intensity Scale (CSIS).
Colors is registered as a service in OSGi service registry under SystemOfUnits interface with the unique name Colors and is available as a service property. The units are available as constants in com.prosyst.mbs.services.units.system.Colors.
Registering Bundle
This service is registered by Units of Measurement Framework API Bundle.