• DocumentCode
    3039190
  • Title

    An observer design-pattern detection technique

  • Author

    Ren, Wu ; Zhao, Wenyun

  • Author_Institution
    Sch. of Comput. Sci., Fudan Univ., Shanghai, China
  • Volume
    3
  • fYear
    2012
  • fDate
    25-27 May 2012
  • Firstpage
    544
  • Lastpage
    547
  • Abstract
    The paper presents an approach for design patterns recognition in legacy code by the combination of static and dynamic analysis techniques. The implement process has three steps: static parser, SWRL rules and dynamic validation. The static parser translates the input source code into the AST. The protégé tool defines programming concepts with ontology model and design pattern into SWRL rules, and these SWRL rules are defined in OWL format, and then the code instances are constructed as OWL individuals and map to the individuals of the program ontology model. Finally, subsequent dynamic analysis is employed to confirm or weaken the results from static analysis. We discuss our approach for the Observer design pattern on a Java system.
  • Keywords
    Java; knowledge representation languages; object-oriented programming; ontologies (artificial intelligence); program diagnostics; program interpreters; semantic Web; software maintenance; AST; Java system; OWL format; Protégé tool; SWRL rules; design patterns recognition; dynamic analysis technique; dynamic validation; legacy code; observer design-pattern detection technique; program ontology model; programming concept; source code translation; static analysis technique; static parser; Java; OWL; Object oriented modeling; Observers; Ontologies; Pattern recognition; Syntactics; design pattern; dynamic analysis; ontology-based system; static analysis;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Computer Science and Automation Engineering (CSAE), 2012 IEEE International Conference on
  • Conference_Location
    Zhangjiajie
  • Print_ISBN
    978-1-4673-0088-9
  • Type

    conf

  • DOI
    10.1109/CSAE.2012.6273011
  • Filename
    6273011