Add new Units to SensIDL

The Units System of SensIDL is based on JScience and therefore contains many Units, probably all the user will ever need. Nevertheless there is the Option to define new Units. To do so, the user has to make changes in the Source Code.

First locate the NonSILabels.java Java-File. To find the class open the de.fzi.sensidl.desgin Project and go into the src-man Folder. The class is then contained in the de.fzi.sensidl.design.util package. Locate the public static void init() Method.

To declare a new unit you can orientate yourself at the already declared units. Other examples are the following as given as in the JScience Documentation: UnitFormat.getInstance().label(DAY.multiply(365), "year");
UnitFormat.getInstance().label(METER.multiply(0.3048), "ft");