Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » ATL code
ATL code [message #704681] Thu, 28 July 2011 20:03
Andr is currently offline Andr
Messages: 1
Registered: July 2011
Location: Portugal
Junior Member
Hello everyone,

i am having a problem understading how ATL works. I am trying to transform from a KAOS model to a Component Diagram model(from UML). I am Starting by doing a simple transformation. The problem is that my solution is not working.I want to transform three system agents to three components. The problem is that i have a class the works as a compartment, so any transformation i do, must be inside it. In imperative programming i would define a class, then create an array as a private member and then i would add elements i wanted to its array member. But since ATL uses OCL notation, i want something like:

ComponentDiagram.hasComponents<-Set{KAOS!SystemAgent.allInstances('IN')}
and SystemAgent.name<-Component.name
Previous Topic:Performance issues w.r.t. QVTO compiler and interpreter
Next Topic:What transformation engine for my use-case
Goto Forum:
  


Current Time: Wed Aug 27 15:24:49 EDT 2014

Powered by FUDForum. Page generated in 0.01614 seconds