基于事件机制的观察者模式及应用  被引量:7

The Applied Research of Observer Pattern Based on Event Mechanism

在线阅读下载全文

作  者:吴清寿[1] 

机构地区:[1]武夷学院数学与计算机系,福建武夷山354300

出  处:《重庆理工大学学报(自然科学)》2012年第9期100-104,共5页Journal of Chongqing University of Technology:Natural Science

基  金:福建省教育厅科技项目(JA11265);武夷学院科研基金资助项目(X1201019)

摘  要:研究了委托与事件机制的实现方法,阐述了观察者模式的特征及所遵循的原则,提出了基于事件机制的观察者模式新的结构及编程框架。最后分析了其主要应用场景。The observer pattern is mainly used to weaken the coupled relations between objects. The event mechanism buih on the basis of the delegate type further decouples subject and observer object of the observer pattern, improving the ability that the observer pattern can adapt to the changes better. This paper not only discusses implementation methods of delegate and event mechanism, but also ex- pounds the characteristics of observer pattern and principles, and then puts forward the new structure and programming framework of the event-based mechanism in observer pattern. In the end, it analyzes the main application scenarios.

关 键 词:观察者模式 事件 委托 设计模式 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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