Hi Simon,
As I understand you have "custom attributes" in your metamodel and
want to specify them using pragmas. Further you would like Fame to
parse and handle these pragmas.
I dont have a solution ready for this. Which is not a surprise, Fame
grows only when need arises. Do you have suggestions how to solve it?
What would be best for your need?
Would something alonge these lines help you:
<MSEAnnotation: #longName value: 'pimp my meta-model'>
<MSEAnnotation: #description value: 'Yo dawg, I herd you like
models so we put ...'>
cheers,
AA
--
Follow me
http://twitter.com/akuhn
On 08.12.2008, at 12:16, 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