设计模式在Drawcli程序中的应用  

APPLICATION OF DESIGN PATTERN IN DRAWCLI

在线阅读下载全文

作  者:万波[1] 张焰[1] 罗治强[1] 

机构地区:[1]上海交通大学电力工程系,上海200030

出  处:《计算机应用与软件》2003年第8期12-13,84,共3页Computer Applications and Software

摘  要:本文首先介绍设计模式产生的背景 ,然后以简单、易懂且具通用性的Drawcli程序为例 ,详细分析其中采用的三种设计模式 :Prototype、Observer及ChainofResponsibility在Drawcli程序中的应用。这些设计模式虽然是针对不同的应用而产生的 ,但它们也有内在的共同性 :降低耦合、利用了面向对象的继承和封装思想。它们本身十分通用 ,可以作为其他设计的模板。设计模式的采用提高了设计的通用性和自由度 。This paper discussed some background information about design pattern.Then it illustrated three important design patterns:Prototype,Observer and Chain of Responsibility,using Drawcli as an example,for Drawcli is easy to understand and is in general use.The three patterns share some common properties:decreased coupling,using inheritance and encapsulate concept of object-orient programming,although each pattern is a solution for an application-specific problem.Each design pattern is general enough to act as a design template for other applications.Using design pattern increases the generality and freedom of architecture.It's a design concept deserving recommendation.

关 键 词:程序设计 Drawcli程序 设计模式 面向对象 继承 

分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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