Notification concepts

There are many complex interdependencies among instances in a large object-oriented system. For the system to remain in a consistent and coherent state, instances typically need information about changes to other instances.

For example, consider a view that displays a collection of graphics. To keep up to date with what the system displays on the screen, the view needs to know whenever the collection or one of its graphics changes.

Although you could apply a specific solution to this type of problem, using a generic framework that isolates the classes that are sending notification from the details of classes receiving notification provides more flexibility.

If you were to implement a specific solution and then later decide to enhance the program to add more or different views on the collection, there would be a lot of additional and unnecessary work to do. However, if you designed the program using the Notification framework, the design could be updated without changing the class that maintains the shapes or the shape classes themselves.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker