Package com.seeq.link.sdk.utilities
Class UnitParser
java.lang.Object
com.seeq.link.sdk.utilities.UnitParser
A cached wrapper around the /system/uoms API, allowing us to parse units using the same logic of
com.seeq.appserver.data.scalar.ScalarUnits.smartParseUnit.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ONE_UOM
- See Also:
-
STRING_UOM
- See Also:
-
-
Constructor Details
-
UnitParser
public UnitParser(com.seeq.api.SystemApi systemApi)
-
-
Method Details
-
smartParseUnit
- Returns:
- the canonical version of the argument unit
- Throws:
IllegalArgumentException
- if the argument unit is unknown
-
smartParseUnitOrUnitless
- Returns:
- the canonical version of the argument unit or
ONE_UOM
if it is unknown
-