- Abstract Factory - provides an interface for creating families of related or dependent object without specifying their concrete classes.
- Adapter - converts the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces.
- Bridge - decouples an abstraction from its implementation so that the two can vary independently.
- Chain of Responsibility - Avoids coupling the sender of a request to its receiver by giving more than one object a change to handle the request. Chain the receiving objects and pass the request along the chain until an object handles it. {Could this be use in AI?}
- Command - encapsulates a request as an object, thereby letting me parameterize clients with different requests, queue or log requests, and support undoable operations.
- Composite - composes objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.
- Decorator - attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.
- Facade - provides a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.
- Factory Method - defines a interface for creating an object, but lets subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.
- Flyweight - is used to support sharing a large number of fine-grained object efficiently.
- Interpreter - given a language, define a represention for its grammar along with interpreter that uses the representation to interpret sentences in the language.
- Iterator - provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
- Mediator - defines an object that encapsulates how a set of objects interact.
Thursday, October 9, 2008
Catalog of Design Patterns
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment