首页 | 本学科首页   官方微博 | 高级检索  
     


Enhancing class commutability in the deployment of design patterns
Affiliation:1. Dipartimento di Informatica, Università degli Studi di Bari Aldo Moro, Via Orabona, 4 – 70125 – Bari, Italy;2. Dipartimento di Elettronica, Informazione e Bioingegneria, Politecnico di Milano, P.zza L. da Vinci, 32 – 201233 – Milano, Italy\n;1. WA School of Mines-Minerals, Energy & Chemical Engineering, Curtin University, 6102 Bentley, Western Australia, Australia;2. Department of Thermofluids, School of Mechanical Engineering, Universiti Teknologi Malaysia, 81310 UTM Skudai, Johor Bahru, Malaysia
Abstract:A design pattern provides a structure to facilitate program changes with respect to a design concern. For example, the State pattern manages object behaviour in different internal states of objects. It allows new internal states of an object to be supported with the reuse of the object context. The deployment of a design pattern in a software program comprises a set of classes following the structure of the pattern. Within the set, classes that implement the managed concern of the pattern are commuted to new ones when changes related to the concern occur. However, commutation efforts can be tedious if these classes are accessed arbitrarily throughout the software. To confine the commutation efforts, these classes should be properly encapsulated. This paper proposes design restrictions in pattern deployments to achieve proper encapsulation. The approach is illustrated by a pattern-based program that supports appointment scheduling of multiple users. Preliminary experiments show that our approach facilitates program changes subject to multiple design concerns.
Keywords:
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号