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: 560
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 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

Previous Topic:ANT Task
Next Topic:[ATL /AM3 XML Extractor ]
Goto Forum:
  


Current Time: Mon Oct 07 07:17:31 EDT 2013

Powered by FUDForum. Page generated in 0.01552 seconds