some issues in class DvQuantity

Bug #611378 reported by Sergio Miranda Freire on 2010-07-29
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OSHIPpy
High
Unassigned

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?

Related branches

Changed in oship:
importance: Undecided → High
milestone: none → 1.5
affects: oship → oshippy
Changed in oshippy:
milestone: 1.5 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers