Links between the same Elements [message #152372] |
Thu, 27 September 2007 14:10 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: elena.renzi.gmail.com
Hi,
in my ecore metamodel I have an Eclass Relationship with an Eattribute
card, that allows me to create relationship 1:n and relationship n:m
between Entities.
I want to represent relationship as links, so I created two link mapping
in my gmfmap model. Links mapping are equals except for a feature seq
initializer where I set the card(1:n) attribute. When I run the model I
have an error: the first link works fine, but the second create both the
relation 1:n and the relation n:m...Can someone tell me where I was wrong?
Thanks in advance
Elena Renzi
|
|
|
Re: Links between the same Elements [message #153086 is a reply to message #152372] |
Tue, 02 October 2007 17:24 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: 5d5.mail.ru
So how do you suppose diagram editor will distinguish these links in
runtime? You've specified how to initialize them but not how to
distinguish them...
In TaiPan example I've modeled the same case - reliable and unreliable
routes. Same class, links differ by 'reliability' attribute value.
Feature sequence initializers are complemented by link constraints.
Elena Renzi wrote:
> Hi,
> in my ecore metamodel I have an Eclass Relationship with an Eattribute
> card, that allows me to create relationship 1:n and relationship n:m
> between Entities.
> I want to represent relationship as links, so I created two link mapping
> in my gmfmap model. Links mapping are equals except for a feature seq
> initializer where I set the card(1:n) attribute. When I run the model I
> have an error: the first link works fine, but the second create both the
> relation 1:n and the relation n:m...Can someone tell me where I was wrong?
> Thanks in advance
> Elena Renzi
>
|
|
|
Powered by
FUDForum. Page generated in 0.03033 seconds