nitc :: CDITC :: defaultinit
# MClass metric: Class Depth in Inheritance Tree
#
# Following the longest path composed only of extends edges from self to Object
class CDITC
super MClassMetric
super IntMetric
redef fun name do return "cditc"
redef fun desc do return "depth in class tree following only class, abstract, extern kind"
redef fun collect(mclasses) do
for mclass in mclasses do
values[mclass] = mclass.ditc(mainmodule)
end
end
end
src/metrics/inheritance_metrics.nit:473,1--487,3