Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » OCLinEcore metamodel and allinstances(is "allinstances " source of problems when creating a metamodel?)
OCLinEcore metamodel and allinstances [message #1822272] Mon, 02 March 2020 23:33 Go to next message
argaz amazigFriend
Messages: 29
Registered: November 2018
Junior Member
I was told that using "allinstances" is not always a goud practice
why?
thanks in advance
Re: OCLinEcore metamodel and allinstances [message #1822277 is a reply to message #1822272] Tue, 03 March 2020 06:13 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7665
Registered: July 2009
Senior Member
Hi

a) Poor implementations may implement allInstances as a search of all objects every time.

Eclipse OCL searches all objects on the first occurrence of each target type and caches.

Eclipse QVTd has a better view of the intent and searches all objects as it loads them.

b) it is often more readable to relocate the code as a Constraint on the allInstanced type.

Regards

Ed Willink
Previous Topic:Announce OCL 6.10.1
Next Topic:Generating code from ecore model
Goto Forum:
  


Current Time: Fri Jul 19 22:39:05 GMT 2024

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

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

Back to the top