A tool for detecting detects on class implementation in object oriented program on the basis of the Law of Demeter: focusing on dependency between packages

  • Authors:
  • Ryota Chiba;Hiroaki Hashiura;Seiichi Komiya

  • Affiliations:
  • Graduate School of Engineering, Shibaura Institute of Technology, Komiya Lab, Tokyo, Japan;Graduate School of Engineering, Shibaura Institute of Technology, Komiya Lab, Tokyo, Japan;Graduate School of Engineering, Shibaura Institute of Technology, Komiya Lab, Tokyo, Japan

  • Venue:
  • ACS'10 Proceedings of the 10th WSEAS international conference on Applied computer science
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

Design methods, such as OOSE and OMT, are used in object-oriented development. However a common fault of these design methods is that design of classes becomes a problem, therefore we have suggested that lowering the coupling by paying attention to module partition have proposed the method of supporting class design. And extended that the Law of Demeter which is one of the laws to lower coupling, can also be applied to JAVA. In addition, about JAVA, when reusing the modules created by other persons, the application of use is higher with package units than the class units, so made it a rule to apply between packages. We developed the tool, which detected the points that violated this automatically as plug in of Eclipse and inspected it about the effectiveness. It experimented with a made tool, As a result, It was able to detect that violate the Law of Demeter and confirmed that the concrete can be detected that location.