Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Generated model with wrong xmi tags(Generated model with wrong xmi tags)
icon8.gif  Generated model with wrong xmi tags [message #1121837] Mon, 30 September 2013 21:59 Go to next message
Rui Pais is currently offline Rui Pais
Messages: 2
Registered: September 2013
Junior Member
Dear all,

I'm doing an ATL transformation from UML to PNML Core Model (pnml.org).

I was hopping to obtain some result like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<PetriNetDoc xmlns:xsi="www.w3.org/2001/XMLSchema-instance" xmlns="www.pnml.org/version-2009/grammar/pnml" xmlns="www.pnml.org/version-2009/grammar/pnml">
  <nets>
    <pages id="EngineStateMachine">
      <Place id="IDOperate">
        <name text="Operate"/>
        <initialMarking text="0"/>
        <bound text="1"/>
      </Place>
      <Arc id="IDrelease brake" source="IDrelease brake" target="IDBraking"/>
      <RefPlace id="IDrelease brake" OutArcs="IDrelease brake"/>
      <RefTransition id="IDstartSt" InArcs="IDtr1"/>


but I'm obtaining this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<PetriNetDoc xmlns:xsi="www.w3.org/2001/XMLSchema-instance" xmlns="www.pnml.org/version-2009/grammar/pnml" xmlns="www.pnml.org/version-2009/grammar/pnml">
  <nets>
    <pages id="EngineStateMachine">
      <objects xsi:type="Place" id="IDOperate">
        <name text="Operate"/>
        <initialMarking text="0"/>
        <bound text="1"/>
      </objects>
      <objects xsi:type="Arc" id="IDrelease brake" source="IDrelease brake" target="IDBraking"/>
      <objects xsi:type="RefPlace" id="IDrelease brake" OutArcs="IDrelease brake"/>
      <objects xsi:type="RefTransition" id="IDstartSt" InArcs="IDtr1"/>


Any idea about what can be the problem?
thank you,
Rui
Re: Generated model with wrong xmi tags [message #1122362 is a reply to message #1121837] Tue, 01 October 2013 09:40 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 588
Registered: July 2009
Senior Member
Hello,

These are just different serializations for XMI, but the actual model elements seem to be the same in both cases.
To avoid such confusions (and to be sure that your models are correct), it is recommended to don't look to the models as text (XMI) files but rather to use dedicated model editors/browsers.
For instance, you can use the generic MoDisco Model Browser.

Best regards,


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Re: Generated model with wrong xmi tags [message #1122825 is a reply to message #1122362] Tue, 01 October 2013 20:27 Go to previous messageGo to next message
Rui Pais is currently offline Rui Pais
Messages: 2
Registered: September 2013
Junior Member
Thanks Hugo for quick reply.
My problem is that some tools would not read my generated XMI model.
I'll proceed with the model transformation and later I will see this question better.

Best regards,
Rui

Re: Generated model with wrong xmi tags [message #1219341 is a reply to message #1122825] Tue, 03 December 2013 08:00 Go to previous messageGo to next message
rahim lyes is currently offline rahim lyes
Messages: 1
Registered: December 2013
Junior Member
I have the same need, if you have find a solution !
Re: Generated model with wrong xmi tags [message #1219373 is a reply to message #1219341] Tue, 03 December 2013 10:02 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 3844
Registered: July 2009
Senior Member
On 03/12/2013 14:47, rahim lyes wrote:
> I have the same need, if you have find a solution !
The EMF book explains how to customize XML serialization.

Regards

Ed Willink
Previous Topic:Please help me to check the helper context in ATL
Next Topic:[EMFTVM] Accessin output elements' attributes
Goto Forum:
  


Current Time: Mon Apr 21 08:48:14 EDT 2014

Powered by FUDForum. Page generated in 0.04999 seconds