Modeling collaborative behavior using cooperation contracts

作者:

Highlights:

摘要

Several objects exhibit collaborative behavior if they act together in answering a message they have received jointly. Collaborative behavior is defined by cooperation contracts which are established between several object classes and which declare a set of cooperative methods. A cooperative method is invoked by a cooperative message sent to a tuple of instances, one for each object class in the cooperation contract. This extends the traditional message passing paradigm which requires the receiver of a message to be a single object only. Cooperation contracts offer several benefits for behavior modeling in object-oriented database design. Behavior provided by several object classes in concert needs not be dispersed and can be defined in a single place. Therefore, behavior designs become symmetric, more maintainable and better extensible. Cooperation contracts can easily be made available as beneficial modeling constructs in existing object-oriented database management systems by adding a few classes. This paper presents such an extension based on the commercial object-oriented database management system GemStone.

论文关键词:Multiple polymorphism,Collaborative behavior modeling,Cooperation contracts,Object-oriented database design

论文评审过程:Received 13 March 1996, Revised 13 January 1997, Accepted 15 September 1997, Available online 5 August 1998.

论文官网地址:https://doi.org/10.1016/S0169-023X(97)00037-2