Home » Eclipse Projects » Sirius » Containment Reference as Edge(Containment Reference as Edge)
|
Re: Containment Reference as Edge [message #1720092 is a reply to message #1719716] |
Thu, 14 January 2016 10:41 |
|
Hi,
If you want to visualize a metamodel, I recommand that you install
(https://www.eclipse.org/ecoretools/).
I think that in your metamodel you should have a non-containing
reference from Port to itself. Then, your edge creation tool should have
an operation (create instance) creating a Port in the source Component,
another one to create a Port in the target Component, and finally add a
reference to the "target" Port in the "source" Port.
Regards,
Steve
Le 11/01/2016 17:31, Anthony Garmendia a écrit :
> Hi,
>
> I'm currently defining the visualization of a metamodel, with this structure.
>
>
>
> Architecture -> Root
> Component ->Node
> Component.ports ->Link
> Ports-> Node
>
> The problem arises when I try to create a Port using the palette, because we do not know in which container (Component) the Port should be stored. I could not find a solution or an example. Thanks for any help!!
>
> Cheers,
> Anthony
>
--
Steve Monnier - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Containment Reference as Edge [message #1721557 is a reply to message #1720092] |
Thu, 28 January 2016 10:08 |
Antonio Garmendia Messages: 93 Registered: May 2014 |
Member |
|
|
Hi,
Thanks for the reply. I still do not understand why I have to add a non-containing reference from Port to itself.
With this metamodel, I have created this simple model tool I've attached below and this is an example Diagram(Architecture.png).
I have been able to create a Port when I create the edge, but to that I have to make a clic in a Component(source) and after that I have to click in a Port(target). After that, I create a different Port to do the relationship. I would like to find a different way, if that is possible, to do that, in which I did not have to click to a port when in fact I want to create another one. Maybe clicking on the diagram or with just a simple click on the Component I think would be better. I attached the project if you want to have a look, hope you can help me.
Cheers,
Anthony
[Updated on: Thu, 28 January 2016 10:11] Report message to a moderator
|
|
|
Re: Containment Reference as Edge [message #1721563 is a reply to message #1721557] |
Thu, 28 January 2016 10:37 |
|
Le 28/01/2016 11:08, Anthony Garmendia a écrit :
> Hi,
Hi,
>
> Thanks for the reply. I still do not understand why I have to add a non-containing reference from Port to itself.
>
> With this metamodel, I have created this simple model tool I've attached below and this is an example Diagram.
>
>
>
> I have been able to create a Port when I create the edge, but to that I have to make a clic in a Component(source) and after that I have to click in a Port(target). After that, I create a different Port to do the relationship. I would like to find a different way, if that is possible, to do that, in which I did not have to click to a port when in fact I want to create another one. Maybe clicking on the diagram or with just a simple click on the Component I think would be better. I attached the project if you want to have a look, hope you can help me.
I completed your VSM with a new tool "Port with edge" that made what you
want (I think). This is a Node Creation tool, that uses the "extra
mappings" property to allow to click on the Component to create the Port.
>
> Cheers,
> Anthony
>
Regards,
--
Laurent Redor - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Laurent Redor - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
| |
Goto Forum:
Current Time: Thu Apr 25 08:54:58 GMT 2024
Powered by FUDForum. Page generated in 0.03841 seconds
|