Volume 9 Number 6 (Jun. 2014)
Home > Archive > 2014 > Volume 9 Number 6 (Jun. 2014) >
JSW 2014 Vol.9(6): 1485-1493 ISSN: 1796-217X
doi: 10.4304/jsw.9.6.1485-1493

Detecting Breaks in Design Patterns from Code Changes

Maen Hammad1, Mustafa Hammad2, Ahmed F. Otoom3, Mohammad Bsoul3
1Department of Software Engineering, The Hashemite University, Zarqa, Jordan
2Department of Information Technology, Mu'tah University, AL Karak, Jordan
3Department of Software Engineering, Department of Computer Science and Applications, The Hashemite University, Zarqa, Jordan

Abstract—This paper presents an approach to automatically detect and identify breaks in design patterns from a code change during software evolution for C++ programs. The proposed approach aims to determine whether a code change breaks a predefined design pattern or not. The approach analyzes a code change and checks if the change breaks a predefined design pattern that is defined by software designers. Classes and their methods and relationships that are involved in a design pattern are represented in XML format named patternXML with the corresponding design pattern information. After each code change, patternXML file is parsed to determine possible breaks of patterns caused by the committed code change. All identified breaks are saved and archived for future analysis. A simple set of rules are defined to detect and identify breaks in predefined design patterns. The patternXML representation is flexible and can represent different types of design patterns. The approach is realized as a tool and it is evaluated on a set of test cases. Experimental results show that the tool can achieve high accuracy rate in discovering breaks in design patterns from code changes.

Index Terms—software design; design patterns; software evolution


Cite: Maen Hammad, Mustafa Hammad, Ahmed F. Otoom, Mohammad Bsoul, "Detecting Breaks in Design Patterns from Code Changes," Journal of Software vol. 9, no. 6, pp. 1485-1493, 2014.

General Information

ISSN: 1796-217X (Online)
Frequency:  Bimonthly (Since 2020)
Editor-in-Chief: Prof. Antanas Verikas
Executive Editor: Ms. Yoyo Y. Zhou
Abstracting/ Indexing: DBLP, EBSCO, Google Scholar, ProQuest, INSPEC(IET), ULRICH's Periodicals Directory, WorldCat, etc
E-mail: jsw@iap.org
  • Apr 26, 2021 News!

    Vol 14, No 4- Vol 14, No 12 has been indexed by IET-(Inspec)     [Click]

  • Jun 22, 2020 News!

    Papers published in JSW Vol 14, No 1- Vol 15 No 4 have been indexed by DBLP     [Click]

  • Sep 13, 2021 News!

    The papers published in Vol 16, No 6 have all received dois from Crossref    [Click]

  • Jan 28, 2021 News!

    [CFP] 2021 the annual meeting of JSW Editorial Board, ICCSM 2021, will be held in Rome, Italy, July 21-23, 2021   [Click]

  • Sep 13, 2021 News!

    Vol 16, No 6 has been published with online version     [Click]