|
Re: Dynamic entity creation Sirius [message #1697639 is a reply to message #1697262] |
Fri, 05 June 2015 14:16 |
|
Hi,
I see several possibilities:
. a Selection Wizard tool (or a antoher tool in which you add a
selection variable), populated with your descriptors (you could add the
descriptor concept in your metamodel) and then in the tool operations,
regarding the element selected in the wizard you might use the
CreateInstance and Set operations to instantiate some model elements.
. a generic tool, calling a Java service in its operation, from there
you might display a custom popup/wizard, and create your dynamic part of
the model with the Java API created from the metamodel: see the factory
class generated from your EPackage name:
MyEPackageNameFactory.eInstance.createDbType(), then
myDbType.setName(aName), ...
You can also call a Java service in the first option.
When you speak about statc model, dynamic model, what do you mean ? you
want to dynamically create a sub part of the model from the user
selection ? Do you also avoid to serialize this part?
Regards,
Le 02/06/2015 22:24, Caglayan Gemici a écrit :
> Hello,
> We have been working with Obeo Designer since 1 month and we came across a difficulty. It would be great if someone could help.
>
> We are students in Carnegie Mellon University working on a model driven project. Our project involves generating configuration files for a distributed database monitoring system.
>
> Metamodel of our system is attached (Metamodel.png)
>
>
>
>
>
> Every database type comes with certain metrics that it can provide. Our aim is to enable the user to create a database type and then the metrics it provides are populated into the diagram automatically. A mockup of what we are trying to achieve is attached (Target mockup.png).
>
>
> We have created an initial viewpoint representation of the system where we can create the static elements. We are thinking that the mentioned dynamic functionality can be added using Java Services but we are clueless as to where to start from. Any help would be highly appreciated.
>
> PS: We are open to changes in our meta-model, if it is required to fulfill the said functionality.
>
> PPS: We have also posted this question in Obeo network.
> obeonetwork.com/group/obeo-designer/forum/topics/dynamic-palette-items
>
>
--
Maxime - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.03080 seconds