Files
VV-ISTIC-TP2/exercises/jp-tcc.md
Romain Lefeuvre 7b185c9c0c 2025 init
2025-11-18 14:41:54 +01:00

1.2 KiB

Class cohesion with JavaParser

With the help of JavaParser implement a program that computes the Tight Class Cohesion (TCC) for each class in a given Java project. The program should take as input the path to the source code of the project. It should produce a report in the format of your choice (TXT, CSV, Markdown, HTML, etc.) containing a table showing for each class: the package, name and TCC value. Your application should also produce a histogram showing the distribution of CC values in the project. Compare the histogram of two or more projects. Finally, your application should also produce the dependency graph of each class (cf. example here). The graph should be written using the GraphViz DOT format

Ignore inherited members to compute TCC of a class.

Include in this repository the code of your application. Remove all unnecessary files like compiled binaries. Do include the reports and plots you obtained from different projects. See the instructions for suggestions on the projects to use.

You may use javaparser-starter as a starting point.