ATL code [message #704681] |
Fri, 29 July 2011 00:03 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.02674 seconds