Hi Simon,
You will find property:longName:description: only in the FAMIX 2 classes, because this pragma is used in the Meta version of Moose in VW. So, these pragmas should be migrated to Fame MSE*. The other solution is to subclass the Fame PragmaProcessor and modify it to understand the old pragmas.
Cheers, Doru
On Dec 8, 2008, at 12:16 PM, Simon Denier wrote:
Hi
I was wondering how some pragmas should be handled in Moose? Apparently there is currently two "kind" of pragmas in use: the ones which begin with MSESomething are used to describe the model in Fame. But there is also a range of "property:longName:description:" pragmas which are used to describe entity properties like "numberOfMethods", "numberOfAccesses"...
Such pragmas allow a generic mean to access some metrics, using MooseEntity#propertyNamed: But the implementation of #propertyNamed: relies on attributes which should be described in the metamodel.
Now it seems that the responsibility to parse and interpret those pragmas belongs to Fame. Currently they are not handled, and I just found a TODO note in FM3MetaDescription#attributeNamed:ifAbsent:
-- Simon
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com www.tudorgirba.com/blog
"Sometimes the best solution is not the best solution."