Fixed calculation of CCM metric. Added changes to metric.xsd and CCM.xsl for writting temporary information: relations between methods represented as
Also found and fixed mistakes in CCM test values of classes Foo and TwoCommonAttributes.
Mistakes explanation:
Foo class has 2 methods, both of them access attribute name. This means that NC number of connected methods is 1, NCC is also 1, NMP between 2 methods is 1. Value will be 1.
TwoCommonAttributes class has 3 methods. None of pairs of methods call or access common method or attribute. NC is 0. NCC is equal 3. NMP between 3 methods is 3. Value will be 0. CCM metric can not have NaN values if number of methods more than 1.
Fixed calculation of CCM metric. Added changes to metric.xsd and CCM.xsl for writting temporary information: relations between methods represented as
Also found and fixed mistakes in CCM test values of classes Foo and TwoCommonAttributes. Mistakes explanation: