← Back to team overview

oship-dev team mailing list archive

[Bug 611378] [NEW] some issues in class DvQuantity

 

Public bug reported:

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?

** Affects: oship
     Importance: High
         Status: New

** Changed in: oship
   Importance: Undecided => High

** Changed in: oship
    Milestone: None => 1.5

-- 
some issues in class DvQuantity
https://bugs.launchpad.net/bugs/611378
You received this bug notification because you are a member of OSHIP
Development Team, which is subscribed to Open Source Health Information
Platform.

Status in Open Source Health Information Platform (OSHIP): 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?





Follow ups

References