comp.lang.ada
 help / color / mirror / Atom feed
From: "Matthew Heaney" <matthew_heaney@acm.org>
Subject: ANNOUNCE: Observer articles posted
Date: 1999/09/14
Date: 1999-09-14T00:00:00+00:00	[thread overview]
Message-ID: <37dee728@news1.prserv.net> (raw)

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.

<http://www.acm.org/archives/patterns.html>

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 <your full name>

to the ACM mailing list server.

<mailto:listserv@acm.org>


You can send comments and questions to the Ada95 patterns list, or to me
directly.

<mailto:patterns@acm.org>
<mailto:matthew_heaney@acm.org>

Matt




                 reply	other threads:[~1999-09-14  0:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox