Previous Topic

Next Topic

Book Contents

Book Index

System of Units Service

Overview

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.

Registering Bundle

This service is registered by Units of Measurement Framework API Bundle.