Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Guillaume on July 03, 2018, 08:07:51 pm

Title: {unique} in SysML 1.4 Parts compartment
Post by: Guillaume on July 03, 2018, 08:07:51 pm
Hi,

I use EA 13.5 + SysML 1.4. On a BDD, I can see the block's parts in the compartment  e.g. role1: BlockB [1] ({unique})
Is there any way to remove this unique info?

I noticed that it only appears when you enter  value e.g. a custom multiplicity e.g. 2 on the composition link to the block (instead of a selection from the drop down list).
The OMG specs show that {unique} for the references compartment only.

Title: Re: {unique} in SysML 1.4 Parts compartment
Post by: PeterHeintz on July 04, 2018, 01:46:37 am
In V13 it is not shown.

To get rid of it in 13.5 you have to set "Allow Duplicates" to true in your SOURCE Role.
However if you do not want to allow duplicates, you probably have to stay with it.
Title: Re: {unique} in SysML 1.4 Parts compartment
Post by: Guillaume on July 04, 2018, 03:20:33 pm
Hi Peter,

Thank you for your reply. I tried it but the unique is still visible.
It's only when I select a multiplicity value from the drop down list on the Source Role that the "unique" disappears (I wonder if it's a bug)
Title: Re: {unique} in SysML 1.4 Parts compartment
Post by: PeterHeintz on July 04, 2018, 05:25:14 pm
Maybe the behaviour is even different in different V13.5 build.
I assume it is somehow a kind of bug.
Title: Re: {unique} in SysML 1.4 Parts compartment
Post by: andykeaveney on November 11, 2022, 08:49:32 pm
Same problem here using EA 16. Pretty annoying. Not sure why it adds 'bag' to the multiplicity when you allow duplicates too. I am using the stock multiplicity options.
Title: Re: {unique} in SysML 1.4 Parts compartment
Post by: qwerty on November 11, 2022, 09:47:12 pm
Probably the bag is a keyword from UML  (p. 34 of UML 2.5) where it denotes unordered non-unique collections.

q.
Title: Re: {unique} in SysML 1.4 Parts compartment
Post by: Paolo F Cantoni on November 13, 2022, 04:54:26 pm
Probably the bag is a keyword from UML  (p. 34 of UML 2.5) where it denotes unordered non-unique collections.

q.
Wot 'e sed!

Paolo