FAMILIAR-project / familiar-language

FAMILIAR language and API
13 stars 3 forks source link

Metric improvement #35

Open surli opened 10 years ago

surli commented 10 years ago

It would be great to have access with Familiar to all metrics described in the paper of Bagheri and Gasevic "Assessing the Maintenability of Software Product Line Feature Model using Structural Metrics". For now, Familiar is able to compute the CTC ratio, but I'd like to see the total number of features involved in constraints, the number of leaves, the depth of the FM, the cyclomatic complexity and so one.

FAMILIAR-project commented 10 years ago

What about https://github.com/FAMILIAR-project/familiar-language/blob/master/FAMILIAR/src/fr/familiar/operations/StructuralMetricsFM.java !?

surli commented 10 years ago

Oh nice! I didn't know this class. Then is it usable only through the API or is there a language element to call these operations?

FAMILIAR-project commented 10 years ago

Only with the API... Is it a problem?

surli commented 10 years ago

Actually yes. I often want to compute metrics on my FMs and it seems a little bit tedious to create a program calling the familiar API to do so. Then it should be great to be able to call directly this class with the familiar language, eventually only to display the toString which seems rather complete.