1

Are there any opensource/free libraries that I can use to calculate the LCOM3 or LCOM4 Class Cohesion metric? I want to write a tool that reads in java files and calculate this metric.

TERACytE
  • 7,553
  • 13
  • 75
  • 111
  • Different authors use different names for the various metrics. Which authors are connected with "your" LCOM3 and LCOM4? – kc2001 Feb 14 '11 at 00:09
  • I am looking to calculate LCOM to determine cohesion over time. You can read about the kind of metric I am looking for here: http://javaboutique.internet.com/tutorials/codemetrics/index-2.html – TERACytE Feb 14 '11 at 18:56

2 Answers2

2

This metric is is available in Sonar.

Kartoch
  • 7,610
  • 9
  • 40
  • 68
0

The upcoming metrics2 release has the Henderson-Sellers version of LCOM ("LCOM3"). You can get a pre-release version of the Eclipse plugin at http://code.google.com/p/ext-c/downloads/list. The StateOfFlow metrics plugin also has it.

kc2001
  • 5,008
  • 4
  • 51
  • 92