Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Dynamic entity creation Sirius
Dynamic entity creation Sirius [message #1697262] Tue, 02 June 2015 19:44 Go to next message
Caglayan Gemici is currently offline Caglayan GemiciFriend
Messages: 2
Registered: June 2015
Junior Member
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)
index.php/fa/22024/0/




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).
index.php/fa/22023/0/

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

Re: Dynamic entity creation Sirius [message #1697639 is a reply to message #1697262] Fri, 05 June 2015 14:16 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 500
Registered: July 2009
Location: Nantes, France
Senior Member
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
Previous Topic:Any problem if use Project explorer instead of Model explorer?
Next Topic:Sirius / EMF : How to edit model elements programmatically ?
Goto Forum:
  


Current Time: Fri Jan 22 04:36:54 GMT 2021

Powered by FUDForum. Page generated in 0.02214 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top