Please enable JavaScript.
Coggle requires JavaScript to display documents.
design patterns - Coggle Diagram
design patterns
behavioral patterns
-
memento
The memento pattern is used to capture the current state of an object and store it in such a manner that it can be restored at a later time without breaking the rules of encapsulation.
iterator
The iterator pattern is used to provide a standard interface for traversing a collection of items in an aggregate object without the need to understand its underlying structure.
observer
The observer pattern is used to allow an object to publish changes to its state. Other objects subscribe to be immediately notified of any changes.
strategy
The strategy pattern is used to create an interchangeable family of algorithms from which the required process is chosen at run-time.
-
interpreter
The interpreter pattern is used to define the grammar for instructions that form part of a language or notation, whilst allowing the grammar to be easily extended.
template method
The template method pattern is used to define the basic steps of an algorithm and allow the implementation of the individual steps to be changed.
command
The command pattern is used to express a request, including the call to be made and all of its required parameters, in a command object. The command may then be executed immediately or held for later use.
visitor
The visitor pattern is used to separate a relatively complex set of structured data classes from the functionality that may be performed upon the data that they hold.
chain of responsibility
The chain of responsibility pattern is used to process varied requests, each of which may be dealt with by a different handler.
structural patterns
decorator
The decorator pattern is used to extend or alter the functionality of objects at run-time by wrapping them in an object of a decorator class
-
composite
The composite pattern is used to create hierarchical, recursive tree structures of related objects where any element of the structure may be accessed and utilised in a standard manner.
flyweight
The flyweight pattern is used to reduce the memory and resource usage for complex models containing many hundreds, thousands or hundreds of thousands of similar objects
bridge
The bridge pattern is used to separate the abstract elements of a class from the implementation details, providing the means to replace the implementation details without modifying the abstraction
proxy
. The proxy pattern is used to provide a surrogate or placeholder object, which references an underlying object.
adapter
The adapter pattern is used to provide a link between two otherwise incompatible types by wrapping the "adaptee" with a class that supports the interface required by the client.
creational patterns
factory method
The factory pattern is used to replace class constructors, abstracting the process of object generation so that the type of the object instantiated can be determined at run-time.
prototype
The prototype pattern is used to instantiate a new object by copying all of the properties of an existing object, creating an independent clone.
builder
The builder pattern is used to create complex objects with constituent parts that must be created in the same order or using a specific algorithm.
-
abstract factory
The abstract factory pattern is used to provide a client with a set of related or dependant objects.
-