comp.lang.ada
 help / color / mirror / Atom feed
From: "Jim shaw" <James_P_Shaw@msn.com>
Subject: Re: Conception problem
Date: 1997/05/30
Date: 1997-05-30T00:00:00+00:00	[thread overview]
Message-ID: <01bc6c26$4e1c0ef0$ab526478@jims_nt_1> (raw)
In-Reply-To: 01bc6b91$54b26a60$d19ecec2@beta


A better solution would be to implement the Observer design pattern (Design
Patterns, by Gamma et.al.). Just a quick blurb on this pattern (please see
book for more detail):

Essentially all objects of class type B, would keep a list of "subscribed"
objects to notify when an event of interest occurs. When a particular event
(of your own choosing) occurs, the object simply "notifies" all subscribed
objects of this event (i.e. send a message to that object).


Nicolas Gautier <GautierN@sofreavia.fr> wrote in article
<01bc6b91$54b26a60$d19ecec2@beta>...
> Hello,
> Sorry if this mail is a little bit long. This is a question about what is
> the best 
> way to handle lists where modifications of one element can trigger
> modifications
> on other elements of the list.
> 


Ciao!
Jim Shaw





  parent reply	other threads:[~1997-05-30  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-28  0:00 Conception problem Nicolas Gautier
1997-05-29  0:00 ` John Heidelberger
1997-05-30  0:00 ` Jim shaw [this message]
1997-05-30  0:00   ` Russ McClelland
1997-06-03  0:00   ` Malcolm Macgregor
replies disabled

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