Modelling Causal Connections between Objects
Blekinge Institute of Technology, Department of Computer Science and Business Administration1997 (English)In: Journal of Programming Languages , ISSN 0963-9306, Vol. 5, no 1, 233-258 p.Article in journal (Refereed) Published
The conventional object-oriented paradigm provides client-server message passing as the primary means of interaction between objects. Although this is appropriate in situations where one objects requests a service from another object, there are other situations where one object, the observer, depends on state-changes or actions occurring at another object, the target. In those situations, the object-oriented paradigm requires the target object to notify the observer objects, despite the fact that the target object does not benefit from the interaction. This inverted interaction scheme leads to problems such as increased coupling and decreased understandability, maintainability and reusability of the resulting classes. In the analysis of object interactions one can identify four roles: the benefitor, the establisher, the sender and the receiver. The aforementioned problems result from the fact that in client-server interaction, the benefitor and the sender are not always the same object. To address this, we pr opose the notion of causal connections, an alternative interaction mechanism complementing the traditional client-server interaction. Two implementations of causal connections are described; one in the context of C++ and another using the layered object model. It is shown that causal connections solve the problems mentioned above.
Place, publisher, year, edition, pages
London: Chapman & Hall , 1997. Vol. 5, no 1, 233-258 p.
object-oriented programming , client-server interaction , interobject dependencies
IdentifiersURN: urn:nbn:se:bth-9443ISI: 000070980600002Local ID: oai:bth.se:forskinfoE24A51B5441E8605C12568A3002CAB27OAI: oai:DiVA.org:bth-9443DiVA: diva2:837292