[ATL] Issue with matching non related targets. [message #105736] |
Wed, 27 May 2009 12:29 |
Eclipse User |
|
|
|
Originally posted by: amehmood.sophia.inria.fr
Hi All,
I have got a problem, which i suppose is do-able in ATL. I have UML as
input source model and output is a custom metamodel myML. I have two
rules, mapping UML components and UML classes
rule component {
from u : UML2!Component
to v : myML!ComponentType
(name<-u.name,
,absif<-atype
--NEXT IS THE LINE THAT I WANT TO CORRECT.
,busif<-thisModule.btype)
,atype:myML!AbstractType--(blah blah blah)
}
rule class {
from s : UML2!NamedElement
to t : myML!InterfaceType
(name<-s.name
,port<-prt)
,prt:myML!PortType--(blah blah blah)
,btype:myML!BusType--(blah blah blah)
}
I want that the target of component rule can use one of the targets from
the class rule...But I must not use the implicit mapping between
component and class, as there is not direct link between the two. and
secondly, the class rule is referenced else where also..... I want a
direct mapping of 'busif' with the 'btype' where btype is mapped with
uml2 class.
I thought that it can be done some way with the 'resolveTemp' thing, but
i couldn't found it. Plz do reply, it will help many others in future also.
Regards,
-aamir-
|
|
|
|
Powered by
FUDForum. Page generated in 0.03339 seconds