Inference of object-oriented design patterns

被引:21
|
作者
Tonella, P [1 ]
Antoniol, G
机构
[1] IRST, ITC, I-38050 Trento, Italy
[2] Univ Sannio, Fac Engn, I-82100 Benevento, Italy
关键词
code analysis; concept analysis; reverse engineering; software architecture; design patterns;
D O I
10.1002/smr.235
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
When designing a new application, experienced software engineers usually adopt solutions that have proven successful in previous projects. Such reuse of code organizations is seldom made explicit. Nevertheless, it represents important information, which can be extremely valuable in the maintenance phase by documenting the design choices underlying the implementation. In addition it can be reused whenever a similar problem is encountered. In this paper an approach for the inference of recurrent design patterns directly from the code is proposed. No assumption is made on the availability of any pattern library, and the concept analysis algorithm-adapted for this purpose-is able to infer the presence of class groups which instantiate a common, repeated pattern. In fact, concept analysis provides sets of objects sharing attributes, which-in the case of object-oriented design patterns-become class members or inter-class relations. The approach was applied to three C++ applications for which the structural relations among classes led to the extraction of a set of design patterns, which could be enriched with non-structural information about class members and method invocations. The resulting patterns could be interpreted as meaningful organizations aimed at solving general problems which have several instances in the applications analyzed. Copyright (C) 2001 John Wiley & Sons, Ltd.
引用
收藏
页码:309 / 330
页数:22
相关论文
共 50 条
  • [1] Object-oriented design patterns recovery
    Antoniol, G
    Casazza, G
    Di Penta, M
    Fiutem, R
    [J]. JOURNAL OF SYSTEMS AND SOFTWARE, 2001, 59 (02) : 181 - 196
  • [2] Design patterns in object-oriented frameworks
    Srinivasan, S
    [J]. COMPUTER, 1999, 32 (02) : 24 - +
  • [3] Object-Oriented Design Patterns for Detailed Design
    Al-Ahmad, W.
    [J]. JOURNAL OF OBJECT TECHNOLOGY, 2006, 5 (02): : 155 - 169
  • [4] Mapping procedural patterns to object-oriented design patterns
    Lano K.
    Malik N.
    [J]. Automated Software Engineering, 1999, 6 (3) : 265 - 289
  • [5] Inductive inference to support object-oriented analysis and design
    Popelinsky, L
    [J]. KNOWLEDGE-BASED SOFTWARE ENGINEERING, 1998, 48 : 81 - 88
  • [6] Object-oriented design of RTI using design patterns
    Lee, TD
    Jin, JH
    Jeong, CS
    [J]. OBJECT-ORIENTED INFORMATION SYSTEMS, 2003, 2817 : 329 - 333
  • [7] Design patterns for an Object-Oriented computational chemistry
    Bersini, H
    [J]. ADVANCES IN ARTIFICIAL LIFE, PROCEEDINGS, 1999, 1674 : 389 - 398
  • [8] Efficient object-oriented software with design patterns
    Friedrich, M
    Papajewski, H
    Schröder-Preikschat, W
    Spinczyk, O
    Spinczyk, U
    [J]. GENERATIVE AND COMPONENT-BASED SOFTWARE ENGINEERING, PROCEEDINGS, 2000, 1799 : 79 - 90
  • [9] Implementing design patterns with object-oriented rules
    Weiss, GM
    Ros, JP
    [J]. JOURNAL OF OBJECT-ORIENTED PROGRAMMING, 1998, 11 (07): : 25 - +
  • [10] Design patterns for object-oriented software development
    Pree, W
    Sikora, H
    [J]. PROCEEDINGS OF THE 1997 INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, 1997, : 663 - 664