摘要
从面向构件方法学及软件体系结构的观点出发,致力于探讨观察者模式(Observer)的改进及其构架设计问题。分析现有Observer模式的原理和缺陷;进而采用统一建模语言描述改进模式的结构模型和行为模型;最后,将其应用到联销管理软件中,采用ADL形式描述语言ACME定义联销管理的构件模板。所提出的改进模式可实现目标与观察者的彻底解耦,增强观察粒度和安全性,提高目标状态的传递效率,并在联销管理软件的研制中取得了良好的应用效果。
<Abstrcat>From the view of component-Oriented methology and software achitechture, this paper discusses the Observer improvement and its achitechture design. Firstly, the defects of current Observer are ananlysed ; Secondly,its structure and behavor models are established by use of UML; At last,use the imporved Observer into ally-distribution software by one of ADLs:ACME, to define the component template of this software system.The improved Observer can break the couples between subject and Observer, enhance the granularity observed and its security, improve the transfer efficiency of subjects' state. It performs well in the software development of ally-distribution management system.
出处
《微机发展》
2005年第6期137-139,共3页
Microcomputer Development