Book a Demo

Author Topic: Class Diagrams: Association End Owned by a Class  (Read 6217 times)

rty

  • EA User
  • **
  • Posts: 28
  • Karma: +2/-1
    • View Profile
Class Diagrams: Association End Owned by a Class
« on: February 02, 2016, 09:22:46 pm »
According to http://www.uml-diagrams.org/association.html, it is fine to use the attribute notation for association end owned by a class to make it perfectly clear that the attribute is also an association end:



Unfortunately, I was not able to reproduce that using EA. I can create the dot notation, I can create the attribute notation, but EA can not see that those are identical.

Background: I want to create one diagram which shows a classes contents explicitly using not notations and visualize the contents using the attribute notation in other diagrams which just use the class. Is that possible?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Class Diagrams: Association End Owned by a Class
« Reply #1 on: February 03, 2016, 01:29:50 am »
They did hide it well. Properties/Roles/Advanced/Owned

q.

rty

  • EA User
  • **
  • Posts: 28
  • Karma: +2/-1
    • View Profile
Re: Class Diagrams: Association End Owned by a Class
« Reply #2 on: February 03, 2016, 07:15:37 pm »
Hmm, I had this already activated. Without the owned property, EA does not show the dot notation.

I also have Direction set to Source -> Destination, Multiplicity to 1 and gave the target of the role a name:



But, in a different diagram, the class still appears without its owned attribute:


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13471
  • Karma: +571/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Class Diagrams: Association End Owned by a Class
« Reply #3 on: February 03, 2016, 07:37:23 pm »
Do you expect EA to automatically add the "owned" class to all diagrams that show the "parent" class?

That won't happen.
Maybe you should try using attributes instead of associations.

Geert

rty

  • EA User
  • **
  • Posts: 28
  • Karma: +2/-1
    • View Profile
Re: Class Diagrams: Association End Owned by a Class
« Reply #4 on: February 03, 2016, 08:24:57 pm »
A pity. Yes, that was exactly what I found at uml-diagrams.org.

The benefit of using associations would have been that all the juicy details (e.g. role names) are imho more visible and easier to recognize if only the diagram is used for communication.

Anyway, thanks a lot for the feedback!

Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1173
  • Karma: +30/-8
    • View Profile
Re: Class Diagrams: Association End Owned by a Class
« Reply #5 on: February 03, 2016, 08:36:33 pm »
Not entirely sure what you are trying to achieve with this, if you have a class called Person with 3 attributes: Fist Name, Last Name and Date of Birth. Are you trying to display this class in a diagram with 4 boxes - 1 Person, 2 First Name, 3 Last Name, and 4 Date of Birth - and an 4 associations between boxes 1 (Person) and boxes 2, 3 and 4 (with a dot at the end)?

AFIK, the only way to do this with EA is to create 4 classes: Person, First Name, Last Name and Date of Birth. AFIK, there is no way to achieve this with a single class.

It will be nice to be able to do it.