|
|
|
Re: Help with Edge creation tool [message #1836177 is a reply to message #1836169] |
Wed, 23 December 2020 09:00 |
|
Hello,
As pointed out by Avi, it is not clear one which semantic relation your connector will rely on?
The edge creation tool will allow to create an edge between two elements only if a consistent Edge Mapping exists between those elements. Before defining the edge creation tool, make sure that you are able to display the edge in your diagram.
If I take your second sample metamodel, it seems that you have defined an edge between an element of type A and an element of type B. Make sure that the relation"a" or "b "is properly set in your model and you should see the edge appears. In this case, the edge creation tool will create the semantic relation (by setting the "a" or "b" feature) and the edge will automatically be created according to the edge mapping.
Regards,
Florian
|
|
|
|
|
Re: Help with Edge creation tool [message #1836600 is a reply to message #1836443] |
Fri, 08 January 2021 15:23 |
|
Hi Mike,
It seems that both goal and goalElements are references "many" and not container. The recommended name should be goals and goalRequirements.
The Set operation in the model will do a "ADD" on the corresponding list.
Are you creating an edge tool which will allows the user to clic on a source Experiment and an existing target GoalRequirement element ?
Is the tool intended to create a Goal element, store it in the model, add it to the source expriment goals and references the target (second clic) element as goalRequirement of the created Goal ?
Regards,
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Help with Edge creation tool [message #1836928 is a reply to message #1836600] |
Tue, 19 January 2021 04:33 |
mike hill Messages: 13 Registered: December 2020 |
Junior Member |
|
|
Thank Maxime.
I solved my problems after I read EMF and Sirius documentation, I refactored my model, added precondition and other advanced features.
As for the case of "single tool to represent my two relations(goal and goalRequirement)", I created an if statements to take care of each relationship(I think this was the recommend way to do it according to the documentation, I might be wrong though)
[Updated on: Wed, 17 March 2021 13:08] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04395 seconds