Skip to main content


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] Thu, 21 March 2013 02:42 Go to next message
yesheng chai is currently offline yesheng chaiFriend
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 09:33 Go to previous message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
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, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Previous Topic:exemple of condition in transformation ATL
Next Topic:Elements of xmi files to the graphics
Goto Forum:
  


Current Time: Sat Apr 20 01:35:16 GMT 2024

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

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

Back to the top