I'm currently working on solving some puzzles related to LORM metric, and coincidentally I found this pull request #292 -that unfortunately get merged- and that claims to implement the LORM metric as described in the related research papers papers/etzkorn00.pdf and papers/izadkhah17.pdf, but unfortunately it seems that @ilyakharlamov didn't went deep in the definition of the R variable of LORM that is clearly defined in the above papers as follow:
R = Total number of relations in the class = number of pairs of methods in the class for which one method contains conceptual relations forming external links out of the set of concepts that belong to the method to or from the set of concepts belonging to another method in the class.
Taken from complete definition of LORM from the original paper papers/etzkorn00.pdf
And the following excerpts from the same paper define what are concepts & conceptual relations and how they are calculated:
and here more explanation:
But it seems that the mentioned PR #292 treat and calculate conceptual relations based on the number of simple calls between methods of the class as you can see in this commit.
So my real problem here is that the code related to this PR confused me initially and now is getting in my way while trying to solve the puzzles #160 and #204, and my question is: could I remove that code from LORM.xsl? or I should just leave it there because it's not part of my taske.
@paulodamaso The job #334 assigned to @fellahi-ali/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; there will be a monetary reward for this job
I'm currently working on solving some puzzles related to LORM metric, and coincidentally I found this pull request #292 -that unfortunately get merged- and that claims to implement the LORM metric as described in the related research papers papers/etzkorn00.pdf and papers/izadkhah17.pdf, but unfortunately it seems that @ilyakharlamov didn't went deep in the definition of the
R
variable of LORM that is clearly defined in the above papers as follow:Taken from complete definition of LORM from the original paper papers/etzkorn00.pdf
And the following excerpts from the same paper define what are concepts & conceptual relations and how they are calculated:
and here more explanation:
But it seems that the mentioned PR #292 treat and calculate conceptual relations based on the number of simple calls between
methods
of theclass
as you can see in this commit.So my real problem here is that the code related to this PR confused me initially and now is getting in my way while trying to solve the puzzles #160 and #204, and my question is: could I remove that code from
LORM.xsl
? or I should just leave it there because it's not part of my taske.