Operations on Quantity(Amount) vs. Unit [message #566769] |
Sun, 04 July 2010 11:33 |
Werner Keil Messages: 1087 Registered: July 2009 |
Senior Member |
|
|
As some of you may have noticed, OUMo following the roots of JSR-275, now
Units API (http://unitsofmeasure.org) JSR-108, now UCAR/UDUNITS
( http://www.unidata.ucar.edu/software/udunits/udunits-1/index .html) provides
operations on the Unit interface declared by the Core Units API.
Some other tools and frameworks, most notably OSGi Measurement or other
platforms like F# do this on a Measure/Quantity level. Represented by the
base class QuantityAmount in UOMo (subclass of the ICU Measure)
At the moment QuantityAmount has only 2 convenience methods from its JSR
heritage. To express an amount in a different (compatible) unit as double or
long. Other methods including some operations would be possible, so I want
to use this thread hoping for your suggestions on this topic.
Thanks,
Werner
|
|
|
Powered by
FUDForum. Page generated in 0.01429 seconds