• DocumentCode
    3277988
  • Title

    Detection of design pattern instances based on graph isomorphism

  • Author

    Yu Dongjin ; Jianlin Ge ; Wei Wu

  • Author_Institution
    Sch. of Comput., Hangzhou Dianzi Univ., Hangzhou, China
  • fYear
    2013
  • fDate
    23-25 May 2013
  • Firstpage
    874
  • Lastpage
    877
  • Abstract
    Detecting design pattern instances from source codes can assist the understanding of the systems. This paper presents an approach to the detection of design patterns based on graph isomorphism. We introduce two kinds of graphs, among which one represents the system design and the other describes the design patterns to be recovered. In order to detect instances of design patterns, we first identify in system graph all the candidate classes that correspond to the pattern classes. Afterwards we select some of candidate classes to form the sub-graphs of system graph, which are then checked isomorphic to the pattern graph or not. Those isomorphic sub-graphs are regarded to be corresponding to instances of the design patterns. The detection of decorator pattern is given as the example to show the effectiveness of the approach.
  • Keywords
    graph theory; object-oriented methods; candidate classes; decorator pattern; design pattern instances; graph isomorphism; pattern classes; Silicon; Software; decorator pattern; dectection; design patterns; graph isomorphism;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering and Service Science (ICSESS), 2013 4th IEEE International Conference on
  • Conference_Location
    Beijing
  • ISSN
    2327-0586
  • Print_ISBN
    978-1-4673-4997-0
  • Type

    conf

  • DOI
    10.1109/ICSESS.2013.6615444
  • Filename
    6615444