摘要
用面向对象方法构造具有互操作能力的分布并行软件系统是当今一种日渐强烈的需要,但现有的程序设计环境对这方面的支持尚不能让人满意.我们提出并基于C++实现了一种主动对象的事件服务机制。
Object Oriented programming is believed to be one of today's best programming models to cope with complex systems while providing maintainability, extensibility, and reusability, but available Object Oriented languages lack the support of interoperations, which are important in distributed systems. A framework of active objects' event service based on C++ is proposed in this paper. After the analysis of objects' concurrent execution, information exchanges between the client object and the active objects are classified to two catalogs: one is the remote method invocation of the client, the other is the notification of the active object. In this framework, the concept of active object is introduced in conventional C++ while the event relationship between the client and server is maintained to enhance the expressing ability of interoperability. The implementation of the framework is detailed in this paper and an example of net meeting is given to explain the benefit programmers can get from the event service mechanism.
出处
《南京大学学报(自然科学版)》
CAS
CSCD
1999年第1期42-50,共9页
Journal of Nanjing University(Natural Science)
基金
国家863高科技项目