topical media & game development
pattern(s)
/ matrix
/ model(s)
/ resource(s)
behavioral patterns
communication
deal with algorithms and the assignment of responsibilities between objects
class
- template method -- the skeleton of an algorithm
- interpreter -- to evaluate expressions
object
composition
- mediator -- provides indirection for loose coupling
- chain of responsibility -- connect objects to interact
- observer -- to handle dependencies

encapsulating behavior
objectify!
- strategy -- algorithm
- command -- request
- state -- object state -> behavioral change
- visitor -- to extract behavior from class
- iterator -- access and traversal

observer
one-to-many dependencies and notification
structure
consequences
- abstract coupling between subject and observer
- support for broadcast
- deals with unexpected updates
implementation
- mapping subjects to observers
- observing more than one subject?
- who triggers the update - subject or client of subject
- dangling references to subject
- consistency of subject (before notification)
- adding observer-specific update protocols (push / pull)
- specifying modifications of interest (aspects)
- how to encapsulate update semantics

(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.