Uploaded image for project: 'Specification PR tracker'
  1. SPECPR-206

Make PROPORTION_KIND an enumeration and remove the inheritance DV_PROPORTION -> PROPORTION_KIND

    Details

    • Type: Problem Report
    • Status: In Progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects versions: RM Release 1.0.3
    • Fix versions: None
    • Components: RM Data Types
    • Labels:

      Description

      UML accepts the enumeration stereotype, and PROPORTION_KIND is basically an enumeration.

      The only need I can see of having an inheritance from DV_PROPORTION from PROPORTION_KIND is for the valid_proportion_kind method.

      If DV_PROPORTION.type is a PROPORTION_KIND, and it is an enumeration, there is no need of the valid_proportion_kind method, since no invalid values can be set on DV_PROPORTION.type if it is an enumeration instead of Integer as it is right now.

      Pros:
      1. one less method
      2. remove dual inheritance
      3. only valid values are allowed by the model itself by construction, no need of checking

        Attachments

          Activity

            People

            • Assignee:
              thomas.beale Thomas Beale
              Reporter:
              pablopazos Pablo Pazos
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: