How to calculate CBO and LCOM for a class using Python and SciTools Understand API -



How to calculate CBO and LCOM for a class using Python and SciTools Understand API -

in python, how can calculate lcom (lack of cohesion) c++ files (or other file types) using scitools understand api?

for assignment, we're asked calculate lcom ourselves instead of using scitools's understand.

to calculate lcom4, need next metrics,

number of functions/methods in class (given understand "countdeclfunction")

number of method pairs in class @ to the lowest degree 1 instance variable commonly utilize or define in body.

number of method pairs in class have @ to the lowest degree 1 instance method commonly phone call in body.

any suggestion much appreciated.

from metrics listed on https://scitools.com/support/metrics-reports/, believe have develop own metrics complement understand provides.

python scitools

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -