- dit = div(ditsum, model.mclasses.length)
-
- dui = div(dui_count * 100, nc + ni)
- ccdui = div(ccdui_count * 100, nc)
- cidui = div(cidui_count * 100, nc)
- iidui = div(iidui_count * 100, ni)
-
- sldui = div(sldui_count * 100, ncsl + nisl)
- slccdui = div(slccdui_count * 100, ncsl)
- slcidui = div(slcidui_count * 100, ncsl)
- sliidui = div(sliidui_count * 100, nisl)
-
- uddui = div(uddui_count * 100, ncud + niud)
- udccdui = div(udccdui_count * 100, ncud)
- udcidui = div(udcidui_count * 100, ncud)
- udiidui = div(udiidui_count * 100, niud)
-
- udduiud = div(udduiud_count * 100, ncud + niud)
- udccduiud = div(udccduiud_count * 100, ncud)
- udciduiud = div(udciduiud_count * 100, ncud)
- udiiduiud = div(udiiduiud_count * 100, niud)
-
- inhf = div(if_count * 100, nc + ni)
- ccif = div(ccif_count * 100, nc)
- icif = div(icif_count * 100, ni)
- iiif = div(iiif_count * 100, ni)
-
- slinhf = div(slif_count * 100, ncsl + nisl)
- slccif = div(slccif_count * 100, ncsl)
- slicif = div(slicif_count * 100, nisl)
- sliiif = div(sliiif_count * 100, nisl)
-
- slinhfsl = div(slifsl_count * 100, ncsl + nisl)
- slccifsl = div(slccifsl_count * 100, ncsl)
- slicifsl = div(slicifsl_count * 100, nisl)
- sliiifsl = div(sliiifsl_count * 100, nisl)
-
- slinhfud = div(slifud_count * 100, ncsl + nisl)
- slccifud = div(slccifud_count * 100, ncsl)
- slicifud = div(slicifud_count * 100, nisl)
- sliiifud = div(sliiifud_count * 100, nisl)
-
- udinhf = div(if_count * 100, ncud + niud)
- udccif = div(ccif_count * 100, ncud)
- udicif = div(icif_count * 100, niud)
- udiiif = div(iiif_count * 100, niud)
-
- print "--- Global Summary metrics ---"
- print "(NMD) Number of Modules: {nmd}"
- print "(NC) Number of Classes: {nc}"
- print "(NI) Number of Interfaces: {ni}"
- print "(NAC) Number of Abstract Classes: {nac}"
- print "(NGC) Number of Generic Classes: {ngc}"
- print "(NGI) Number of Generic Interfaces: {ngi}"
- print "--- (SL) Std-Lib Summary metrics ---"
- print "(NMDSL) Number of Modules: {nmdsl}"
- print "(NCSL) Number of Classes: {ncsl}"
- print "(NISL) Number of Interfaces: {nisl}"
- print "(NACSL) Number of Abstract Classes: {nacsl}"
- print "(NGCSL) Number of Generic Classes: {ngcsl}"
- print "(NGISL) Number of Generic Interfaces: {ngisl}"
- print "--- (UD) User-Defined Summary metrics ---"
- print "(NMDUD) Number of Modules: {nmdud}"
- print "(NCUD) Number of Classes: {ncud}"
- print "(NIUD) Number of Interfaces: {niud}"
- print "(NACUD) Number of Abstract Classes: {nacud}"
- print "(NGCUD) Number of Generic Classes: {ngcud}"
- print "(NGIUD) Number of Generic Interfaces: {ngiud}"
- print ""
- print "--- Global Inheritance metrics ---"
- print "(DIT) Global Depth in Inheritance Tree: {dit}"
- print "(DUI) Proportion of types inheriting another type other than Object: {dui}%"
- print "(CCDUI) Proportion of classes that extend some other class: {ccdui}%"
- print "(CIDUI) Proportion of classes that implement some other interface: {cidui}%"
- print "(IIDUI) Proportion of interfaces that extend some other interface: {iidui}%"
- print "(IF) Proportion of types Inherited From: {inhf}%"
- print "(CCIF) Proportion of classes extended by class: {ccif}%"
- print "(ICIF) Proportion of interfaces implemented by class: {icif}%"
- print "(IIIF) Proportion of interfaces extended by interface: {iiif}%"
- print "--- (SL) Std-Lib Inheritance metrics ---"
- print "(SLDUI) Proportion of SL types inheriting another type other than Object: {sldui}%"
- print "(SLCCDUI) Proportion of SL classes that extend some other class: {slccdui}%"
- print "(SLCIDUI) Proportion of SL classes that implement some other interface: {slcidui}%"
- print "(SLIIDUI) Proportion of SL interfaces that extend some other interface: {sliidui}%"
- print "(SLIF) Proportion of SL types Inherited From: {slinhf}%"
- print "(SLCCIF) Proportion of SL classes extended by class: {slccif}%"
- print "(SLICIF) Proportion of SL interfaces implemented by class: {slicif}%"
- print "(SLIIIF) Proportion of SL interfaces extended by interface: {sliiif}%"
- print "--- (SL*SL) Std-Lib Inheritance metrics ---"
- print "(SLIFSL) Proportion of SL types Inherited From by SL type: {slinhfsl}%"
- print "(SLCCIFSL) Proportion of SL classes extended by SL class: {slccifsl}%"
- print "(SLICIFSL) Proportion of SL interfaces implemented by SL class: {slicifsl}%"
- print "(SLIIIFSL) Proportion of SL interfaces extended by SL interface: {sliiifsl}%"
- print "--- (SL*UD) Std-Lib Inheritance metrics ---"
- print "(SLIFUD) Proportion of SL types Inherited From by UD type: {slinhfud}%"
- print "(SLCCIFUD) Proportion of SL classes extended by UD class: {slccifud}%"
- print "(SLICIFUD) Proportion of SL interfaces implemented by UD class: {slicifud}%"
- print "(SLIIIFUD) Proportion of SL interfaces extended by UD interface: {sliiifud}%"
- print "--- (UD) User-Defined Inheritance metrics ---"
- print "(UDDUI) Proportion of UD types inheriting another type other than Object: {uddui}%"
- print "(UDCCDUI) Proportion of UD classes that extend some other class: {udccdui}%"
- print "(UDCIDUI) Proportion of UD classes that implement some other interface: {udcidui}%"
- print "(UDIIDUI) Proportion of UD interfaces that extend some other interface: {udiidui}%"
- print "(UDIF) Proportion of UD types Inherited From: {udinhf}%"
- print "(UDCCIF) Proportion of UD classes extended by UD class: {udccif}%"
- print "(UDICIF) Proportion of UD interfaces implemented by UD class: {udicif}%"
- print "(UDIIIF) Proportion of UD interfaces extended by UD interface: {udiiif}%"
- print "--- (UD*UD) User-Defined Inheritance metrics ---"
- print "(UDDUIUD) Proportion of UD types inheriting another type other UD type: {udduiud}%"
- print "(UDCCDUIUD) Proportion of UD classes that extend some other UD class: {udccduiud}%"
- print "(UDCIDUIUD) Proportion of UD classes that implement some other UD interface: {udciduiud}%"
- print "(UDIIDUIUD) Proportion of UD interfaces that extend some other UD interface: {udiiduiud}%"