XOR constraint between associations

Diagramming issues

Moderator: Moderators

XOR constraint between associations

Postby elhamlaoui » Thu May 09, 2013 9:14 am

Hi,
I have been trying to find how to add an XOR constraint beteween two associations in MD but with no success.
Any ideas how could i do it

Thanks in advance
elhamlaoui
Forum Newbie
Forum Newbie
 
Posts: 9
Posts Rating:0
Joined: Fri Apr 19, 2013 4:15 am

Re: XOR constraint between associations

Postby saulius_p » Fri May 10, 2013 7:25 am

Hello,

Please find attached screenshot and project file showing how to use xor constraint between associations.
XOR.png


Please let us know if you have any more questions or issues
You do not have the required permissions to view the files attached to this post.
Best regards,
Saulius Pavalkis
User avatar
saulius_p
No Magic
No Magic
 
Posts: 354
Posts Rating:15
Joined: Fri Dec 04, 2009 5:37 am
Full name: Saulius Pavalkis

Re: XOR constraint between associations

Postby elhamlaoui » Mon May 20, 2013 9:22 am

Hi,
Thanks a lot, the xor element in the palette was hidden at first
elhamlaoui
Forum Newbie
Forum Newbie
 
Posts: 9
Posts Rating:0
Joined: Fri Apr 19, 2013 4:15 am

Re: XOR constraint between associations

Postby jessica.m.reinert@nasa.gov » Mon Mar 09, 2015 2:40 pm

saulius_p wrote:Hello,

Please find attached screenshot and project file showing how to use xor constraint between associations.
XOR.png


Please let us know if you have any more questions or issues


Should the equivalent be possible with generalizations? If so, how do I make the xor element show up in the palette?

Thanks in advance.

Jessica
jessica.m.reinert@nasa.gov
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:0
Joined: Mon Mar 09, 2015 2:33 pm

Re: XOR constraint between associations

Postby saulius_p » Mon Mar 16, 2015 6:00 am

Hello,

Yes. Please find image explaining things. Hope it is helpful.

XOR.png
You do not have the required permissions to view the files attached to this post.
Best regards,
Saulius Pavalkis
User avatar
saulius_p
No Magic
No Magic
 
Posts: 354
Posts Rating:15
Joined: Fri Dec 04, 2009 5:37 am
Full name: Saulius Pavalkis

Re: XOR constraint between associations

Postby leon.mcginnis@gatech.edu » Tue Sep 10, 2019 5:42 am

Where is the constraint link menu item in MagicDraw 18.5/SysML? The example is fine, but I can't locate the link, so I can't apply the xor constraint to two associations.
leon.mcginnis@gatech.edu
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:0
Joined: Tue Sep 10, 2019 5:19 am

Re: XOR constraint between associations

Postby fahad » Mon Oct 21, 2019 9:21 am

It seems the XOR Constraint is only available when using UML Elements.
Is there a workaround to get this to work in SysML/UAF-P diagrams?
fahad
Forum Newbie
Forum Newbie
 
Posts: 11
Posts Rating:0
Joined: Mon Dec 17, 2018 8:47 am

Re: XOR constraint between associations

Postby martin.kortwinkel@airbus.com » Tue Sep 12, 2023 11:07 pm

The constraint element, shown in Saulius screenshot isn't in my Cameo diagram tool palette in section Common. I selected Full Featured perspective.
The Constraint element in the Common tool palette can only be attached to elements but not with a relationship to two other relations like associations.
The only way to model an XOR between two associations is to use SysML::ConstraintBlock with Dependency to the associations (see screenshot).
You do not have the required permissions to view the files attached to this post.
martin.kortwinkel@airbus.com
Forum Newbie
Forum Newbie
 
Posts: 2
Posts Rating:0
Joined: Wed Nov 23, 2022 10:26 am


Return to Diagramming

Who is online

Users browsing this forum: No registered users and 0 guests