Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Tool support for the generation of the instance model of an Ecore model
Tool support for the generation of the instance model of an Ecore model [message #1738000] Thu, 14 July 2016 19:34 Go to next message
Chung-Ling Lin is currently offline Chung-Ling LinFriend
Messages: 39
Registered: December 2011
Member
Hi,

I am working on a project that need to use the eclipse OCL to validate the constraints defined in an Ecore model and use ATL to do the model transformation between two Ecore models. Both of them requires the instance model (the .xmi file) of an Ecore model as part of its input.

Right now I am using the "Create Dynamic Instance" feature to create the instance model of an Ecore model. But since my instance model contains a lot of objects, it is not convenient for me to add/modify the objects in the instance model via the sample reflective ecore model editor. And the modification of the ecore model may make the instance model not readable in the reflective ecore model editor. (e.g. change the multiplicity of an association from 1 to many in the ecore model).

Therefore, I would like to know is there any tool or plugin in eclipse that I can use to edit and review the instance model of an ecore model more efficiently and allows me to save the instance model as an xmi file?

Thank you for your help.

Best Regards,
Chung-Ling Lin

[Updated on: Thu, 14 July 2016 19:35]

Report message to a moderator

Re: Tool support for the generation of the instance model of an Ecore model [message #1738012 is a reply to message #1738000] Fri, 15 July 2016 05:15 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31910
Registered: July 2009
Senior Member
I don't know of any other reflective EMF editors. Maybe this is
relevant for generating an instance:

http://modeling-languages.com/a-pseudo-random-instance-generator-for-emf-models/


On 14.07.2016 21:34, Chung-Ling Lin wrote:
> Hi,
>
> I am working on a project that need to use the eclipse OCL to validate
> the constraints defined in an Ecore model and use ATL to do the model
> transformation between two Ecore models. Both of them requires the
> instance model (the .xmi file) of an Ecore model as part of its input.
> Right now I am using the "Create Dynamic Instance" feature to create
> the instance model of an Ecore model. But since my instance model
> contains a lot of objects, it is not convenient for me to add/modify
> the objects in the instance model via the sample reflective ecore
> model editor. And the modification of the ecore model may make the
> instance model not readable in the reflective ecore model editor.
> (e.g. change the multiplicity of an association from 1 to many in the
> ecore model).
>
> Therefore, I would like to know is there any tool or plugin in eclipse
> that I can use to edit and review the instance model of an ecore model
> more efficiently and allows me to save the instance model as an xmi file?
>
> Thank you for your help.
>
> Best Regards,
> Chung-Ling Lin


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Tool support for the generation of the instance model of an Ecore model [message #1738025 is a reply to message #1738000] Fri, 15 July 2016 07:24 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Maybe you can just generate the code and use this:
http://eclipsesource.com/blogs/2016/02/11/emf-forms-1-8-0-feature-ecore-editor-reloaded/
Additionally, we also have a automatic generator in place:
http://eclipsesource.com/blogs/2014/11/13/fuzzy-testing-of-datamodel-centric-applications/

On 14.07.2016 21:34, Chung-Ling Lin wrote:
> Hi,
>
> I am working on a project that need to use the eclipse OCL to validate
> the constraints defined in an Ecore model and use ATL to do the model
> transformation between two Ecore models. Both of them requires the
> instance model (the .xmi file) of an Ecore model as part of its input.
> Right now I am using the "Create Dynamic Instance" feature to create the
> instance model of an Ecore model. But since my instance model contains a
> lot of objects, it is not convenient for me to add/modify the objects in
> the instance model via the sample reflective ecore model editor. And the
> modification of the ecore model may make the instance model not readable
> in the reflective ecore model editor. (e.g. change the multiplicity of
> an association from 1 to many in the ecore model).
>
> Therefore, I would like to know is there any tool or plugin in eclipse
> that I can use to edit and review the instance model of an ecore model
> more efficiently and allows me to save the instance model as an xmi file?
>
> Thank you for your help.
>
> Best Regards,
> Chung-Ling Lin
Re: Tool support for the generation of the instance model of an Ecore model [message #1738119 is a reply to message #1738012] Fri, 15 July 2016 20:20 Go to previous messageGo to next message
Chung-Ling Lin is currently offline Chung-Ling LinFriend
Messages: 39
Registered: December 2011
Member
Hi,

Thank you for your information. But since I need to generate the objects to represent specific system artifacts instead of random instances, so the EMF (pseudo) random instantiator and the EMF Fuzz Testing tool may not capable to my need.

The EMF Forms editor seems help, I will take a try using the tool to generate the instances.

I also found the EcoreTools can be used to generate the Ecore models graphically, but it seems that the the tool does not support the generation of dynamic instance in a diagram. (Once a dynamic instance is generated, I still need to use the EMF Reflective Editor to edit the instance)

https://www.eclipse.org/ecoretools/doc/index.html

Please let me know if there are any other editors that can be used to generate the instance model. Thank you again for your help.

Best Regards,
Chung-Ling Lin
Re: Tool support for the generation of the instance model of an Ecore model [message #1738147 is a reply to message #1738000] Sat, 16 July 2016 08:41 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7176
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi<br>
<br>
I presume you are writing your own random model generator.<br>
<br>
If your goal is to provide modest sized models that stress the
constraints, I strongly recommend reading the literature.<br>
<br>
<div data-canvas-width="328.74266666666665" style="left:
140.787px; top: 378.333px; font-size: 13.3333px; font-family:
sans-serif; transform: scaleX(0.972611);">Saheed Popoola,
Dimitrios Kolovos and Horacio Rodriguez</div>
<div data-canvas-width="455.5133333333334" style="left: 140.787px;
top: 394.333px; font-size: 13.3333px; font-family: sans-serif;
transform: scaleX(0.954955);">EMG: A Domain-Specific
Transformation Language for Synthetic Model Generation</div>
<br>
was presented at ICMT last week and no doubt has a good related
work referring to many others. You can create custom graphical
editors moderately rapidly with Sirius.<br>
<br>
If you visit <a class="moz-txt-link-freetext" href="http://is.ieis.tue.nl/research/ICMT16/">http://is.ieis.tue.nl/research/ICMT16/</a> you will find
a link to the Proceedings that is free for a couple of weeks.<br>
<br>
If you want huge models to test performance, you may be better off
writing custom code, since the smart generators are really slow.
There is no point viewing huge models graphically. You might find
that it is better to provide a spreadsheet view of huge models to
facilitate statistical analyses.<br>
<br>
    Regards<br>
<br>
        Ed Willink<br>
<br>
<br>
On 14/07/2016 20:34, Chung-Ling Lin wrote:<br>
</div>
<blockquote cite="mid:nm8ph3$lip$1@xxxxxxxxe.org" type="cite">Hi,
<br>
<br>
I am working on a project that need to use the eclipse OCL to
validate the constraints defined in an Ecore model and use ATL to
do the model transformation between two Ecore models. Both of them
requires the instance model (the .xmi file) of an Ecore model as
part of its input. <br>
Right now I am using the "Create Dynamic Instance" feature to
create the instance model of an Ecore model. But since my instance
model contains a lot of objects, it is not convenient for me to
add/modify the objects in the instance model via the sample
reflective ecore model editor. And the modification of the ecore
model may make the instance model not readable in the reflective
ecore model editor. (e.g. change the multiplicity of an
association from 1 to many in the ecore model).
<br>
<br>
Therefore, I would like to know is there any tool or plugin in
eclipse that I can use to edit and review the instance model of an
ecore model more efficiently and allows me to save the instance
model as an xmi file?
<br>
<br>
Thank you for your help.
<br>
<br>
Best Regards,
<br>
Chung-Ling Lin
<br>
</blockquote>
<p><br>
</p>

<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
<tr>
<td style='border:none;padding:0px 15px 0px 8px'>
<a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient">
<img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" alt="Avast logo" />
</a>
</td>
<td>
<p style='color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
This email has been checked for viruses by Avast antivirus software.
<br><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient">www.avast.com</a>
</p>
</td>
</tr>
</table>
<br />
</body>
</html>
Re: Tool support for the generation of the instance model of an Ecore model [message #1738161 is a reply to message #1738147] Sat, 16 July 2016 15:53 Go to previous message
Chung-Ling Lin is currently offline Chung-Ling LinFriend
Messages: 39
Registered: December 2011
Member
Hi,

Thank you for your information. But right now I am not doing the random generation of the model instances. What I am doing now is using the instance model to represent the relationships between specific objects. For example, a specific hazard is addressed by the related safety requirements which are satisfied by some specific system artifacts.

When the number of the objects increased, it may cause some unintentional errors in the instance model and those errors are not easily to found in the EMF reflective editor. For example, a hazard is linked to an irrelevant safety requirement in the instance model.

Therefore, I am looking for the editor that can help me to organize the instance model more efficiently (For example, allows me to draw an object diagram so I can see the links between those objects are correct or not).

I will read the preceding and check the smart generators you mentioned in you reply to see what the tool can do. Thank you again for your help.

By the way, I am not sure why some of your replies are decorated with xml attributes so the message is hard to read. Do you know how can I change the configuration to ignore those xml attributes?

Best Regards,
Chung-Ling Lin
Previous Topic:[Xcore]? Type of EAttributes always EJavaObject
Next Topic:[CDO] delete object of removed class
Goto Forum:
  


Current Time: Sun Jun 20 08:11:24 GMT 2021

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

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

Back to the top