Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Compilation of rule
Compilation of rule [message #1840771] Fri, 23 April 2021 13:57 Go to next message
jo ber is currently offline jo berFriend
Messages: 94
Registered: August 2018
Member
Hello

Is there a possibility to verify that the model elements used in an ATL rule complies with the effective model definition. My impression is that this kind of discrepancies is only raised at runtime.

Thank you and kind regards,
Re: Compilation of rule [message #1840801 is a reply to message #1840771] Sat, 24 April 2021 21:03 Go to previous message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

The only way to fully verify this is through (unit) tests. In addition, it also depends on your ATL code coverage: ATL code that is not triggered on a specific model may contain type errors w.r.t. the metamodel, but not trigger a runtime error. That said, the EMFTVM runtime will verify that all metaclasses specified in the ATL code actually exist in the metamodels used at load time (i.e. just before executing the transformation code). However, it will not verify any of the accessed properties and operations defined on those metaclasses.

Cheers,
Dennis
Previous Topic:Null-safe navigator operator
Next Topic:An ATL Freelancer
Goto Forum:
  


Current Time: Fri Apr 26 09:33:34 GMT 2024

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

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

Back to the top