oship-dev team mailing list archive
-
oship-dev team
-
Mailing list archive
-
Message #01729
[Bug 611378] Re: some issues in class DvQuantity
** Project changed: oship => oshippy
** Changed in: oshippy
Milestone: 1.5 => None
--
You received this bug notification because you are a member of OSHIP
Development Team, which is subscribed to Open Source Health Information
Platform.
https://bugs.launchpad.net/bugs/611378
Title:
some issues in class DvQuantity
Status in Open Source Health Information Platform - Python:
New
Bug description:
It seems that it is not necessary to test for the type of precision in
the initializer.
The invariant Precision_valid: precision >= -1 is not implemented. It
should throw an exception if precision < -1.
The initializer lacks the magnitudeStatus argument and so does the
superclass initializer.
The methods compare ("<") is not implemented.
The method isStrictlyComparable is not implemented correctly: it
should query the measurement service for the equivalence of units and
return true if the objects comparable are both DvQuantity and their
units are equivalent.
The methods add, subtract and negate in DvAmount are not implemented.
It would be interesting to define a representation value for this
class, wouldn't it?
References