Tool support for the generation of the instance model of an Ecore model [message #1738000] |
Thu, 14 July 2016 15:34  |
Eclipse User |
|
|
|
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 15:35] by Moderator
|
|
|
|
|
|
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 04:41   |
Eclipse User |
|
|
|
<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 11:53  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.09369 seconds