Skip to main content


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] Tue, 01 October 2013 01:59 Go to next message
Rui Pais is currently offline Rui PaisFriend
Messages: 2
Registered: October 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 13:40 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
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, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Re: Generated model with wrong xmi tags [message #1122825 is a reply to message #1122362] Wed, 02 October 2013 00:27 Go to previous messageGo to next message
Rui Pais is currently offline Rui PaisFriend
Messages: 2
Registered: October 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 13:00 Go to previous messageGo to next message
rahim lyes is currently offline rahim lyesFriend
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 15:02 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
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: Tue Apr 23 16:05:34 GMT 2024

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

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

Back to the top