Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » ATL Transformation (ERREUR TRANSFORMATION )
ATL Transformation [message #1618017] Sun, 15 February 2015 17:27 Go to next message
Salim Khaled is currently offline Salim KhaledFriend
Messages: 2
Registered: February 2015
Junior Member
index.php/fa/20864/0/index.php/fa/20863/0/
Hi,
I am trying to do a ATL transformation: SysML2ACME:
 -- @path MetaAcme=/TestConnetor/metamodel/MetaAcme.ecore
-- @path MetaSysml=/TestConnetor/metamodel/MetaSysml.ecore

module SysML1;
create OUT : MetaAcme from IN : MetaSysml;

   rule System2AcmeFile {
	from s: MetaSysml!System
	to  
	     t : MetaAcme!AcmeFile ( 
		    name     <- s.name,
	  
		    system   <- s.bdddiag-> collect(fam | thisModule.Bddiagram2System(fam))		
)}   
  
    
    lazy rule Bddiagram2System {
	from s: MetaSysml!BDDiagram
	to  
	     t : MetaAcme!System ( 
		    name     <- s.name ,
			
		   connector<- s.compflow->collect(con |thisModule.ItemFlow2Connector(con)) 
		   
 )		
}
 	
  lazy rule ItemFlow2Connector {
	from s: MetaSysml!ItemFlow
	to  
	     t : MetaAcme!Connector ( 
		    name       <- s.name ,
		instanceOf <- s.assignedto.toString() ,
			Roles      <- s.interfaces -> collect(i|thisModule.Interface2Role(i))
			
			)}   

But when I execute the ATL module, I do not get the expected result.
Indeed, it was not the occurrence of connector.
however, both meta-models are been verified, presented below
index.php/fa/20864/0/
index.php/fa/20864/0/

I don't understand this error. Someone could help me ?

Thank you.
  • Attachment: metaSysml.png
    (Size: 9.50KB, Downloaded 162 times)
  • Attachment: MetaAcme.png
    (Size: 9.25KB, Downloaded 82 times)
Re: ATL Transformation [message #1619012 is a reply to message #1618017] Mon, 16 February 2015 09:24 Go to previous message
Alexander R is currently offline Alexander RFriend
Messages: 211
Registered: July 2013
Senior Member
Hi,

is there an exception or something which appears on the ATL-Console?

~Alex
Previous Topic:ATL Run Configuration
Next Topic:Guards for unique lazy rules
Goto Forum:
  


Current Time: Thu Sep 21 06:55:59 GMT 2017

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

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