From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1108a1,3f9493a9e44bec7d,start X-Google-Attributes: gid1108a1,public X-Google-Thread: 103376,3f9493a9e44bec7d,start X-Google-Attributes: gid103376,public From: "Matthew Heaney" Subject: ANNOUNCE: Observer articles posted Date: 1999/09/14 Message-ID: <37dee728@news1.prserv.net>#1/1 X-Deja-AN: 525201895 Content-transfer-encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Complaints-To: abuse@prserv.net X-Trace: 15 Sep 1999 00:24:08 GMT, 32.101.8.180 Organization: Global Network Services - Remote Access Mail & News Services Mime-version: 1.0 Newsgroups: comp.lang.ada,comp.object Date: 1999-09-14T00:00:00+00:00 List-Id: A series of articles discussing variations of the Observer pattern have been posted to the Ada95 patterns list. They appear under "September 1999" in the patterns archive. All the Ada95 source code is included in the messages. Here's a summary of the articles: Observing a Subject's Attributes Observe each subject attribute individually, so you know which attribute changed when there's a notification. Models That View Themselves The observer is implemented as a child of the subject, so you don't need all those pesky selector functions ("get methods") used only by observers. Observer Notification Using Callbacks An less heavy alternative to deriving from a root observer type and overriding a primitive Update operation. Here, the observer simply registers a callback procedure with the subject. Passing Back Data From Subject To Observer Instead of the observer having to query the subject to get the new value of state, the subject includes the state as part of the notification. Including Subject State In The Callback As above, but the state data is included as a callback parameter. You can subscribe to the Ada95 patterns list by sending the message (body) subscribe patterns to the ACM mailing list server. You can send comments and questions to the Ada95 patterns list, or to me directly. Matt