[ATL] Lazy Rule Filter Not Working [message #93452] |
Tue, 28 October 2008 11:08  |
Eclipse User |
|
|
|
Hi,
I have a problem with lazy rules. I am calling a lazy rule on a collection
of UML2!Class that i selected in a collection of packageableElements
(package.packagedElement collection). In the lazy rule i defined a filter
that will limit the application of the rule to the abstract classes that
are public. I wrote the following code:
...--in the managed rule i call myPublicAbstractClasses this way:
publicAbstractClasses <- s.packagedElement->select(h |
h.oclIsTypeOf(UML2!Class)) ->collect(e |
thisModule.myPublicAbstractClasses(e))
--the lazy rule:
lazy rule myPublicAbstractClasses {
from s : UML2!Class (s.isAbstract=true and s.visibility=#public)
to t : MM!PublicAbstractClass (
name <- s.name
)}
The problem is that the filter is not working, i get all the classes
inside the target property 'publicAbstractClasses'. Did i do something
wrong?!!
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03821 seconds