xviii
29.5 Forces/Motivation ........................................................................ 234
29.6 Constituent Parts .......................................................................... 234
29.7 Implementation Issues ................................................................. 235
29.8 Concrete Example ........................................................................ 236
29.9 Pros and Cons .............................................................................. 238
29.10 Related Patterns ........................................................................... 238
30 Strategy .................................................................................................... 239
30.1 Introduction .................................................................................. 239
30.2 Pattern Classifi cation ................................................................... 239
30.3 Intent ............................................................................................ 239
30.4 Context ......................................................................................... 240
30.5 Forces/Motivation ........................................................................ 240
30.6 Constituent Parts .......................................................................... 240
30.7 Implementation Issues ................................................................. 241
30.8 Concrete Example ........................................................................ 241
30.9 Pros and Cons .............................................................................. 243
30.10 Related Patterns ........................................................................... 243
31 Mediator ................................................................................................... 245
31.1 Introduction .................................................................................. 245
31.2 Pattern Classifi cation ................................................................... 247
31.3 Intent ............................................................................................ 247
31.4 Context ......................................................................................... 248
31.5 Forces/Motivation ........................................................................ 248
31.6 Constituent Parts .......................................................................... 248
31.7 Implementation Issues ................................................................. 249
31.8 Concrete Example ........................................................................ 250
31.9 Event Manager Sample Code ....................................................... 251
31.10 Pros and Cons .............................................................................. 254
31.11 Related Patterns ........................................................................... 255
Reference .................................................................................................. 255
32 Observer ................................................................................................... 257
32.1 Introduction .................................................................................. 257
32.2 Pattern Classifi cation ................................................................... 257
32.3 Intent ............................................................................................ 257
32.4 Context ......................................................................................... 258
32.5 Forces/Motivation ........................................................................ 258
32.6 Constituent Parts .......................................................................... 259
32.7 Implementation Issues ................................................................. 259
32.8 Concrete Example ........................................................................ 260
32.9 Pros and Cons .............................................................................. 261
32.10 Related Patterns ........................................................................... 262
33 State .......................................................................................................... 263
33.1 Introduction .................................................................................. 263
Contents