Book a Demo

Author Topic: Change multiplicity of property  (Read 14514 times)

stereotype

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Change multiplicity of property
« on: May 13, 2015, 10:10:39 pm »
Class A has a property of class B.

Class B has a property of class C, with multiplicity 3. I want to change this value.

Class A is shown in a Composite structure diagram, with B and C visible.
If I right-click on C in the diagram, select Properties and try to change its multiplicity, the OK button is disabled.

Instead, I locate class B in the project browser, locate its property C, right-click, select Properties and change the multiplicity to 5. Looks ok.

In the diagram mentioned above, C is still shown with multiplicity 3. Is this really the expected behaviour? After all, class B has been updated, but class A does not seem to care... :)

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Change multiplicity of property
« Reply #1 on: May 14, 2015, 09:30:11 am »
I've tried to reproduce your model, but the word "property" has too many meanings. It can be an attribute, a part or an association end. So:

Quote
Class A has a property of class B.

This can mean:

  • A owns an attribute "att1" of type B
  • A owns a part "Part1" of type B
  • There is a directed association from A to B with target role named "att1"
  • Something else?
« Last Edit: May 14, 2015, 09:30:44 am by KP »
The Sparx Team
[email protected]

stereotype

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: Change multiplicity of property
« Reply #2 on: May 18, 2015, 05:36:51 pm »
I'm quite new to EA and UML and, embarrassingly enough, I'm not sure :-[ but probably "A owns a part "Part1" of type B"...?

I think that the person who created the model added a new class A to a CompositeStructure diagram, and then "dragged" class B into class A and selected "Paste as: Property".