diff --git a/README.md b/README.md index f675c01f..74767fd0 100644 --- a/README.md +++ b/README.md @@ -159,6 +159,13 @@ _[A] new metric [...] yielding meaningful values [...] more sensitive than those International Journal "Information Theories & Applications", Volume 13, 2006, [PDF](http://citeseerx.ist.psu.edu/viewdoc/download;jsessionid=55D08270F99333F15E0937AF137F4468?doi=10.1.1.84.1506&rep=rep1&type=pdf). +[`bieman95`] +Tight Class Cohesion (**TCC**).
+James M. Bieman et al.,
+Cohesion and Reuse in an Object-Oriented System,
+Department of Computer Science, Colorado State University, 1995, +[PDF](http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.53.2683). + ## How it works? First, `Skeleton` parses Java bytecode using Javaassit and ASM, in order to produce diff --git a/papers/bieman95.pdf b/papers/bieman95.pdf new file mode 100644 index 00000000..568b43ef Binary files /dev/null and b/papers/bieman95.pdf differ diff --git a/src/main/resources/org/jpeek/metrics/TCC.xsl b/src/main/resources/org/jpeek/metrics/TCC.xsl index bec2af71..18879aac 100644 --- a/src/main/resources/org/jpeek/metrics/TCC.xsl +++ b/src/main/resources/org/jpeek/metrics/TCC.xsl @@ -38,35 +38,47 @@ SOFTWARE. - + + + + - + - - - - + + + + - + - 00 + + 0 + @@ -74,6 +86,9 @@ SOFTWARE. + + + diff --git a/src/test/java/org/jpeek/MetricsTest.java b/src/test/java/org/jpeek/MetricsTest.java index a4ea7fd1..0c235232 100644 --- a/src/test/java/org/jpeek/MetricsTest.java +++ b/src/test/java/org/jpeek/MetricsTest.java @@ -144,7 +144,9 @@ public static Collection targets() { new Object[] {"OneVoidMethodWithoutParams", "LCOM3", 1.0d}, new Object[] {"OverloadMethods", "LCOM3", 0.25d}, new Object[] {"TwoCommonAttributes", "LCOM3", 1.0d}, - new Object[] {"WithoutAttributes", "LCOM3", 0.0d} + new Object[] {"WithoutAttributes", "LCOM3", 0.0d}, + new Object[] {"Foo", "TCC", 1.0d}, + new Object[] {"MethodsWithDiffParamTypes", "TCC", 0.2d} ); }