IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

XOR association? Options · View
DJexor
Posted: Friday, July 17, 2009 8:13:45 AM
Rank: Newbie

Joined: 7/17/2009
Posts: 3
Location: Netherlands
Dear readers,

I'm working on a class diagram and was wondering how I can make a XOR constraint between two associations. If it doesn't exist in Altova, can somebody tell me a solution for this?

I have a class Relation with some main details. In the view of the company i work for, a Relation can be a person or a company for example, so I made two classes for these. I made i association between class Person and class Relation and a association between class Company and class Relation. Now I would like to add the XOR constraint between these two associations and here I need your help! :-)

Thanks in advance! Regards,

Jordie
cor
Posted: Friday, July 17, 2009 8:17:25 AM
Rank: Advanced Member

Joined: 9/28/2005
Posts: 371
Location: Vienna
Hi Jordie!

You can place a "{xor}" Note between the associations and connect them via Note links.
DJexor
Posted: Friday, July 17, 2009 8:24:39 AM
Rank: Newbie

Joined: 7/17/2009
Posts: 3
Location: Netherlands
Perfect that's exactly what I needed! Thanks Cor!
dannodj
Posted: Tuesday, August 4, 2009 12:52:46 PM
Rank: Newbie

Joined: 8/4/2009
Posts: 1
Location: london
Hi,

we had the same issue, but when we investigated, it is actually a feature of UML, rather than a problem with the tool. The 'XOR' type association where you effectively place an arc over the relationships which the XOR applies to, can only be created in UML by using notes, or alternatively by placing constraints on the relationships i.e. a tag with {XOR} against the end of each relationship.

This is much easier when you use ER moedling, as the notation provides you with an 'exclusive arc' which can be applied to the applicable relationships.

I hope this helps.

Dan
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.