C2MS 1.1b1 RTF Avatar
  1. OMG Issue

C2MS11 — Consider Making Fields in UML Public vs Private

  • Key: C2MS11-121
  • Status: closed  
  • Source: Kratos RT Logic, Inc. ( Mr. Mike Anderson)
  • Summary:

    All fields in the UML Model classes are shown as Private. This would make sense if these blocks were really supposed to be classes, but in their usage in C2MS, these are handled as structures with all fields accessible.

    Since we are already going to change every UML diagram in C2MS 1.1, we should consider if it would be good to change these all to Public.

    See the attachment for a comparison between fields. Private fields are marked with '-', while private fields (like DATA shown as an example) are marked with '+'.

  • Reported: C2MS 1.0 — Fri, 16 Dec 2022 23:58 GMT
  • Disposition: Closed; No Change — C2MS 1.1b1
  • Disposition Summary:

    No change to be done

    After discussion between Kevin and Mike, we decided that no change is needed or warranted. Leaving data members private implies better data abstraction for classes with getters and setters, changing to public implies using structs without getters/setters. Which is better or more appropriate seems like a decision for the PSM, rather than the PIM. Leaving this way is less change, and nobody has asked for this. It seems unlikely to be something people will clamor for.

  • Updated: Mon, 16 Sep 2024 14:18 GMT
  • Attachments: