[RESOLVED] Cardinalities on begin/end labels [message #1767742] |
Mon, 10 July 2017 13:56 |
sonny selhorst Messages: 60 Registered: May 2015 |
Member |
|
|
Dear,
I would like to add variable cardinalities to the begin/end labels of my bi-directional relationships in my modelling tool, with a name added to them as well. Before I start changing things up in my meta-model, I thought I'd ask first on how this exactly can be reached.
What I am aiming for is to have cardinalities that can be modified as in Ecore Tools, so having 0..1 for example, in which you can change the 0 and the 1 in properties. There should also be a name possible for those cardinalities, the same as in EcoreTools.
I am guessing that I would have to use AQL to write an expression for the begin/end label in which the cardinalities are involved?
Is there any place where I could find the meta-meta-model for Ecore Tools?
Thank you very much.
Kind regards,
Sonny
[Updated on: Sat, 29 July 2017 11:28] Report message to a moderator
|
|
|
|
|
Re: Cardinalities on begin/end labels [message #1769273 is a reply to message #1767751] |
Fri, 28 July 2017 13:34 |
sonny selhorst Messages: 60 Registered: May 2015 |
Member |
|
|
Hey Maxime, thank you for your straightforward response, it answered all my questions.
The problem now is that I am limited in my knowledge of Java. I should have expected that Ecore wouldn't solely be programmed with an MDD but also with manual code manipulation.
I would like to make my EER tool without the necessity of manual code manipulation, thus making the most out of Sirius.
Something that I was thinking that could maybe solve this problem for me, with my knowledge, is to make a bordered node out of a class named "Role" that has the attributes "Name", "Lower Bound" and "Upper Bound". I could then design this feature to have an invisible bordered node on each entity with a label written in AQL, so that it displays "[" + LowerBound + ".." + UpperBound + "]" + roleName.
But then there is the problem that the roles should be inherently linked to the relationship between two entities. Would it be possible to automatically have two bordered nodes created (on each of the entities between which the relationship counts) when a bi-directional relationship is created?
I will add my current meta-model to give you more of an idea.
I am sorry if I sound confusing, if you need me to clarify anything, please ask and I will answer within a day.
Thank you so much in advance and for all the help you have already given me.
|
|
|
Re: Cardinalities on begin/end labels [message #1769274 is a reply to message #1767751] |
Fri, 28 July 2017 13:34 |
sonny selhorst Messages: 60 Registered: May 2015 |
Member |
|
|
Hey Maxime, thank you for your straightforward response, it answered all my questions.
The problem now is that I am limited in my knowledge of Java. I should have expected that Ecore wouldn't solely be programmed with an MDD but also with manual code manipulation.
I would like to make my EER tool without the necessity of manual code manipulation, thus making the most out of Sirius.
Something that I was thinking that could maybe solve this problem for me, with my knowledge, is to make a bordered node out of a class named "Role" that has the attributes "Name", "Lower Bound" and "Upper Bound". I could then design this feature to have an invisible bordered node on each entity with a label written in AQL, so that it displays "[" + LowerBound + ".." + UpperBound + "]" + roleName.
But then there is the problem that the roles should be inherently linked to the relationship between two entities. Would it be possible to automatically have two bordered nodes created (on each of the entities between which the relationship counts) when a bi-directional relationship is created?
I will add my current meta-model to give you more of an idea.
I am sorry if I sound confusing, if you need me to clarify anything, please ask and I will answer within a day.
Thank you so much in advance and for all the help you have already given me.
|
|
|
Re: Cardinalities on begin/end labels [message #1769275 is a reply to message #1767751] |
Fri, 28 July 2017 13:34 |
sonny selhorst Messages: 60 Registered: May 2015 |
Member |
|
|
Hey Maxime, thank you for your straightforward response, it answered all my questions.
The problem now is that I am limited in my knowledge of Java. I should have expected that Ecore wouldn't solely be programmed with an MDD but also with manual code manipulation.
I would like to make my EER tool without the necessity of manual code manipulation, thus making the most out of Sirius.
Something that I was thinking that could maybe solve this problem for me, with my knowledge, is to make a bordered node out of a class named "Role" that has the attributes "Name", "Lower Bound" and "Upper Bound". I could then design this feature to have an invisible bordered node on each entity with a label written in AQL, so that it displays "[" + LowerBound + ".." + UpperBound + "]" + roleName.
But then there is the problem that the roles should be inherently linked to the relationship between two entities. Would it be possible to automatically have two bordered nodes created (on each of the entities between which the relationship counts) when a bi-directional relationship is created?
I will add my current meta-model to give you more of an idea.
I am sorry if I sound confusing, if you need me to clarify anything, please ask and I will answer within a day.
Thank you so much in advance and for all the help you have already given me.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03568 seconds