Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Problem of transformation (ATL problem )
Problem of transformation [message #1692676] Fri, 17 April 2015 10:24
FSM ISFSM is currently offline FSM ISFSMFriend
Messages: 21
Registered: March 2015
Junior Member
Hi,
I'm working on some issues I'm meeting trying to make transformation rules from MetaSysml to MetaAcme. Here are 4 very simple rules:
rule System2AcmeFile {
    from s: MetaSysml!System
    to  
         t : MetaAcme!AcmeFile ( 
            name     <- s.name,
     family<-s.bdddiag->collect( family|thisModule.Bddiagram2Family(family))
         , 
        system <-s.bdddiag->collect(system |thisModule.Bddiagram2System(system))
        )
}

   lazy rule Bddiagram2Family {
    from s: MetaSysml!BDDiagram
    to  
         t : MetaAcme!Family ( 
            name        <- s.name
            ,  
        elementtype <- s.compflow 

 )      
}

    lazy rule Bddiagram2System {
    from s: MetaSysml!BDDiagram
    to  
         t : MetaAcme!System ( 
            name     <- s.name 
            ,

           connector<- s.compflow ) }

    rule ItemFlow2Connector {
    from s: MetaSysml!ItemFlow
    to  
         t : MetaAcme!Connector ( 
            name       <- s.name

            )}

But The problem is that I get the Connector outside of System; Anyone can help me to solve this problem . Thank you very much .
Previous Topic:ATL Transformation rule
Next Topic:ATL Keep UML2 model references
Goto Forum:
  


Current Time: Wed Jan 17 18:17:27 GMT 2018

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

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