A FRAMEWORK TO MEASURE CLASS COHESION

(整期优先)网络出版时间:2003-01-11
/ 1
ClassesarethebasicmodulesinObject-Oriented(OO)software,whichconsistofattributesandmethods.Thus,inOOenvironment,thecohesionismainlyabouthowtightlytheattributesandmethodsofclassescoherewitheachother.Thisletterdiscussestherelationshipsbetweenattributesandattributes,attributesandmethods,methodsandmethodsofaclass,andthepropertiesoftheserelationships.Basedontheseproperties,theletterproposesanewframeworktomeasurethecohesionofaclass.Theapproachovercomesthelimitationsofpreviousclasscohesionmeasures,whichconsideronlyoneortwoofthethreerelationshipsinaclass.