Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] calling a matched rule from within a lazy rule?
[ATL] calling a matched rule from within a lazy rule? [message #480015] Thu, 13 August 2009 09:15 Go to next message
Eclipse UserFriend
Originally posted by: spam.schenkman.info

Hi:

Is it possible to use a matched rule from within a lazy rule?

In the example below, I want MDL!Block.Ports to be converted using a
matched rule for ADL!ADLFlowPort. The matched rule, of course, exists and
is in use in other places in the code.

I'm using ATL 3.0.0 on Eclipse 3.4.2.
Thanks in advance!


unique lazy rule ADLPort2EncapsulatedBock {
from
s : ADL!ADLFlowPort
to
t : MDL!Block (
Name <- s.name,
Ports <- s,
BlockType <- 'encapsulated'
)
}
Re: [ATL] calling a matched rule from within a lazy rule? [message #480028 is a reply to message #480015] Thu, 13 August 2009 10:01 Go to previous message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------010208020206030303050902
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hi Alex,

If I understand your question correctly :-), yes.

You could take a look to the transformation KM32OWL.atl in KM32OWL ATL
scenario (http://www.eclipse.org/m2m/atl/atlTransformations/#KM32OWL),
there are lazy rules similar to your use case. Maybe this example will
help you.

Regards,
Freddy.

Alex Schenkman a
Previous Topic:ATL : Metamodel with references to other metamodels
Next Topic:[ATL] set "is Metametamodel" option programmatically
Goto Forum:
  


Current Time: Fri Sep 26 16:51:05 EDT 2025

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

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

Back to the top