Re: Properties Shared Amongst Objects
- From: "Dmitry A. Kazakov" <mailbox@xxxxxxxxxxxxxxxxx>
- Date: Sun, 17 Feb 2008 17:21:23 +0100
On Sun, 17 Feb 2008 03:22:37 -0600, Leslie Sanford wrote:
[...]
In some cases components need to know when a property changes value. I've
set up a simple implementation of Observer so that components can hook into
properties in order to receive notification of value changes.
I'm looking for comments or insights into the above approach. Also, are
there any sources that describe an approach similar to the above?
This looks like a middleware. The property is a middleware variable/object.
The components share/use some variables. These are referenced through
handles to. Your SmoothProperty would be an implementation of the variable
interface. In middleware we call it driver, and filtering is performed by
the driver of virtual (computed) channels. Variables have some standard
services like get/set value, notification upon change etc. It is not that
simple as it looks in your case, but I think that your example was
simplified too.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
.
- References:
- Properties Shared Amongst Objects
- From: Leslie Sanford
- Properties Shared Amongst Objects
- Prev by Date: Re: Properties Shared Amongst Objects
- Next by Date: Re: Properties Shared Amongst Objects
- Previous by thread: Re: Properties Shared Amongst Objects
- Next by thread: Re: Properties Shared Amongst Objects
- Index(es):
Relevant Pages
|