HiWe had the problem at Synectique and it is a complex issue
for certain metrics we need to compute the total amount of lines of code for the complete project.
FAMIXClass >> calculateARLCOMUnderstand"Class LCOM LOCC1 12 1000C2 2 50For C1 1000/1050 * 12For C2 50/1050 * 2"
self halt.^ self TR_LoC / self mooseModel TR_totalNumberOfLinesOfCode * self TR_LCOM
Now I have a question because totalNumberOfLinesOfCode does exist on Model but on TypeGroup
I wrote it like that on FAMIXTypeGroup
TR_totalNumberOfLinesOfCode<MSEProperty: #TR_totalNumberOfLinesOfCode type: #Number><derived><MSEComment: 'Total number of lines of code from Understand'>^ selflookUpPropertyNamed: #TR_totalNumberOfLinesOfCodecomputedAs: [ (self sumNumbers: [ :each | each TR_LoC ]) asFloat ]
How can I access for example totalNumberOfLinesOfCode at the model level?
-- Nicolas Anquetil -- MCF (HDR) Project-Team RMod