Appendix A. Interfaces for Constructional Design Patterns

The POAD development process glues constructional design patterns. Interfaces qualify a constructional design pattern to be a unit for composition. In this appendix, we define interfaces for some of the patterns that we used in developing the applications in Part 4. There is no unique definition for interfaces of a specific pattern; a pattern can possess multiple interfaces.

Strategy Pattern

The Strategy pattern has the class Context as the interface to the encapsulated control strategy. One might also use the ContextInterface() operation as an interface operation for the Strategy pattern.

Observer Pattern

The Observer has two interfaces that allow coordinating the subject observed with its ...

Get Pattern-Oriented Analysis and Design: Composing Patterns to Design Software Systems now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.