Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. UML Question

UML Question

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Phil Speller
    wrote on last edited by
    #1

    When you document a class using the UML you can show the visibility of the various member functions and variables through the use of -, # and + to indicate private, protected and public visibility. However, when you use graphical methods to show aggregation or association what is the implied visibility here - private? How would you indicate any other type of visibility - through the use of stereotypes? If so, is there a standard method for doing this? This is something my UML books seem to gloss over. Phil

    Z 1 Reply Last reply
    0
    • P Phil Speller

      When you document a class using the UML you can show the visibility of the various member functions and variables through the use of -, # and + to indicate private, protected and public visibility. However, when you use graphical methods to show aggregation or association what is the implied visibility here - private? How would you indicate any other type of visibility - through the use of stereotypes? If so, is there a standard method for doing this? This is something my UML books seem to gloss over. Phil

      Z Offline
      Z Offline
      Zdenek Navratil
      wrote on last edited by
      #2

      http://www.omg.org/ OMG Unified Modeling Language Specification, Version 1.4 September 2001 3.43 Association End 3.43.2.9 visibility

      "Specified by a visibility indicator (‘+’, ‘#’, ‘-’ or explicit
      property name such as {public}) in front of the rolename. Specifies the
      visibility of the association traversing in the direction toward the
      given rolename. See Section 3.25, “Attribute,” on page 3-41 for details
      of visibility specification. Other properties can be specified for
      association ends, but there is no graphical syntax for them. To specify
      such properties, use the constraint syntax near the end of the
      association path (a text string in braces). Examples of other properties
      include mutability."

      P 1 Reply Last reply
      0
      • Z Zdenek Navratil

        http://www.omg.org/ OMG Unified Modeling Language Specification, Version 1.4 September 2001 3.43 Association End 3.43.2.9 visibility

        "Specified by a visibility indicator (‘+’, ‘#’, ‘-’ or explicit
        property name such as {public}) in front of the rolename. Specifies the
        visibility of the association traversing in the direction toward the
        given rolename. See Section 3.25, “Attribute,” on page 3-41 for details
        of visibility specification. Other properties can be specified for
        association ends, but there is no graphical syntax for them. To specify
        such properties, use the constraint syntax near the end of the
        association path (a text string in braces). Examples of other properties
        include mutability."

        P Offline
        P Offline
        Phil Speller
        wrote on last edited by
        #3

        Excellent - thanks very much! Having the actual spec to hand is a good idea - thanks for the link. Phil

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups