设计模式和泛型技术在系统重构中的应用研究  被引量:3

Using design pattern and generic programming in system refactoring

在线阅读下载全文

作  者:王会进[1] 陆裕奇[1] 陈超华[1] 

机构地区:[1]暨南大学计算机科学系,广东广州510632

出  处:《计算机工程与设计》2007年第3期725-728,共4页Computer Engineering and Design

摘  要:重构是在不改变代码外在行为的前提下,对代码做出修改,以改进程序内部结构的过程。设计模式是对被用来在特定场景下解决一般设计问题的类和相互通信的对象的描述。泛型编程专注于将型别抽象化,形成功能需求方面的一个精细集合,并利用这些需求来实现算法。以一个应用系统的数据采集子系统的系统重构为例,将设计模式应用于系统重构中设计阶段,将泛型技术应用于系统重构实现阶段;讨论设计模式技术和泛型技术的结合对系统重构的作用与意义。System refactoring is the process of changing a software system in such a way that it does not alter the external behavior of the code but improve its internal structure. Design patterns are the descriptions of communicating objects and classes that are customized to solve a general design problem in a particular context. Generic programming is a paradigm that focuses on abstracting types to a narrow collection of functional requirements and on implementing algorithms in terms of these requirements. Taking refactoring a data collection system as an example, design pattern is applied to its design, before generic programming is used in implementation. An in-depth discussion about using these two techniques to system refactoring is presented.

关 键 词:设计模式 泛型技术 系统重构 面向对象 软件复用 

分 类 号:TP391[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象