General (#1) - Black Box Options (#9) - Message List
Can anybody tell me anything about mediniQVT and Black Box Operations ? Or even better, does anybody have some example ? Thanks, Siegfried
mediniQVT has no Black Box implementation according to the OMG standard. But, there is a workaround: You can use metamodel operations to do your black box calculations. These operations - defined in the meta classes - can be accessed within any OCL expression in the QVT script.
Hajoeichler02/12/08 17:14:29 (10 years ago)
thanks for your note. Does anybody have some experiences with this option ? I know something about defining EMF based metamodels concerning to the structural point of view - packages, classes, attributes. But I didn't do metamodeling with behavioral features like metaclass methods. Obviously you mean the modeling of behavioral features within the Ecore modeling concepts, don't you ? Is there any more reference concerning to the use in QVT transformation ?
Best regards, Siegfriedsiegfried02/13/08 09:45:19 (10 years ago)
Yes, we mean the Ecore modeling concepts. As you can define metamodel attributes, you can define metamodel operations and actually implement them in the generated model code.
Some parameter types may not work with the QVT engine. Also, you must be aware that a metamodel operation may be called several types, even if it occurs only once in the QVT relation. This is due to the fact that the QVT engine evaluates OCL expressions several times in special cases. Besides this, there should be no special concerns when invoking metamodel operations within a QVT transformation.kiegeland02/13/08 12:05:09 (10 years ago)