Skip to main content

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

  • From: Martin Desruisseaux < >
  • To:
  • Subject: Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory
  • Date: Sat, 01 Nov 2014 01:33:58 +0900
  • Organization: Geomatys

The way Quantity is currently used in JSR-363, it is actually a Scalar.
But I'm fine with "Quantity" if we consider that "Scalar" would be too
confusing for most peoples, provided that we define what we mean.

Whether Measurement should extends Quantity or the converse depends on
our definition of terms. If what we call "Quantity" is actually a
Scalar, then I believe that the current JSR-363 hierarchy is okay. I
would be uncomfortable about reversing the hierarchy (Measurement
extends Quantity) because a measurement is not necessarily a scalar. A
vector is also a measurement (e.g. wind or current vector), etc.

I'm not aware of a universal definition of "Quantity". Wikipedia for
example seems to associate a unit of measurement to quantities. So maybe
if we state clearly that we use the word "Quantity" in the sense of
"Scalar", the current hierarchy is coherent?

However I agree that renaming "Measurement" into something else may
reduce the risk of critics.

    Martin



Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

(continued)

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Martin Desruisseaux 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Werner Keil 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Jean-Marie Dautelle 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Jean-Marie Dautelle 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Werner Keil 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Martin Desruisseaux 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Werner Keil 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Jean-Marie Dautelle 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Martin Desruisseaux 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Werner Keil 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Martin Desruisseaux 10/31/2014

Re: [VOTE] Should a Quantities facade return Quantity or QuantityFactory

Werner Keil 10/31/2014
 
 
Close
loading
Please Confirm
Close