Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » The problem of transformation(order and containment)
The problem of transformation [message #1021973] Wed, 20 March 2013 22:42 Go to next message
yesheng chai is currently offline yesheng chai
Messages: 64
Registered: March 2013
Member
Now,I encouter a problem.
The following is my generated file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns="PetriNets">
  <PetriNet name="MyDay"/>
  <Place name="slep" id="1"/>
  <PlaceToTransition name="slep" id="1"/>
  <Transition name="slep" id="1"/>
  <Place name="work" id="2"/>
  <PlaceToTransition name="work" id="2"/>
  <Transition name="work" id="2"/>
  <TransitionToPlace name="process" sid="1" did="2"/>
</xmi:XMI>

But I want to get the file is :
<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns="PetriNets">
  <PetriNet name="MyDay">
     <Place name="slep" id="1"/>
     <PlaceToTransition name="slep" id="1"/>
     <Transition name="slep" id="1"/>
     <TransitionToPlace name="process" sid="1" did="2"/>  //change
     <Place name="work" id="2"/>
     <PlaceToTransition name="work" id="2"/>
     <Transition name="work" id="2"/>
   </PetriNet>    //change
</xmi:XMI>

Look forward to your replay!
Thank you very much again.
Re: The problem of transformation [message #1022105 is a reply to message #1021973] Thu, 21 March 2013 05:33 Go to previous message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 600
Registered: July 2009
Senior Member
Hello,

Again, this seems to come from the structure of your model.

A good advice when working on models/metamodels: don't look to their XMI serializations because this is going to confuse you.
Keep in mind that XMI is nothing but a serialization/storage format, and there can be different ones for the same actual model.

You should rather open your models using dedicated model editors/viewers to have an exact idea of their actual structure, content, etc.
For instance, I encourage you to use the MoDisco Model Browser (from the MoDisco project which is part of the Juno release) to this intent.

Hugo


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Previous Topic:exemple of condition in transformation ATL
Next Topic:Elements of xmi files to the graphics
Goto Forum:
  


Current Time: Wed Jul 30 17:23:51 EDT 2014

Powered by FUDForum. Page generated in 0.01866 seconds