|
|
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
|
|
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.
|
|
Rank: Newbie
Joined: 7/17/2009 Posts: 3 Location: Netherlands
|
Perfect that's exactly what I needed! Thanks Cor!
|
|
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
|
|
|
guest |