Use Advanced Search to search the entire archive.
[jsr363-experts] Request for clarification on Unit commensurability
- From: Martin Desruisseaux <
>
- To:
- Subject: [jsr363-experts] Request for clarification on Unit commensurability
- Date: Mon, 15 Dec 2014 13:12:29 +0900
- Organization: Geomatys
The specification and the javadoc contains in different places the
following sentence:
Two units /u1/ and /u2/ are compatible if and only if
u1.getDimension().equals(u2.getDimension()).
This discussion said nothing about the case of unit having the same
dimension, but still being different units. Examples:
* /Angular degrees/ and /concentration/ (e.g. of a product in water)
* /Energy/ and /Torque/
I'm not asking for a change in the reference implementation, but I would
request at least a clarification of those cases. Does the RI consider
Energy and Torque as compatible units? Are Unit.asType(Class) and
Quantity.asType(Class) capable to differentiate those two cases?
Martin