moose model extension

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

moose model extension

hayatou
Hello,
How can I extend Moose metamodel to add new metrics at methods, classes and packages levels and how to compute its then show it in the navigation.
thank you


------------------------------------
Hayatou Oumarou, PhD Software Engineering
University of Maroua, Cameroon
(+237)699470504

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: moose model extension

Stéphane Ducasse


On 15 Jan 2019, at 21:23, Hayatou Oumarou <[hidden email]> wrote:

Hello,
How can I extend Moose metamodel to add new metrics at methods, classes and packages levels and how to compute its then show it in the navigation.
thank you


Hayatou 

I do not have moose with me. 
Now take FamixType and have a look at the methods. 
You will see that there is pattern
the system cache the metrics in the properties of the entity
and you define the metrics by simply calling the method computing its values. 

Stef

------------------------------------
Hayatou Oumarou, PhD Software Engineering
University of Maroua, Cameroon
(+237)699470504
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev

--------------------------------------------
Stéphane Ducasse
03 59 35 87 52
Assistant: Julie Jonas 
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley, 
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev