Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
3 Cards in this Set
- Front
- Back
Allow algorithms to be selected at runtime, by defining a family of algorithms, encapsulating each algorithm, and making the algorithms interchangeable within that family Context: Implementation of a family of algorithms Problem: This pattern addresses situations where there are multiple ways of doing the same kind of thing, but with different kinds of input, output, or runtime characteristics and the choice of which way to do it has to be made at runtime |
Strategy Pattern
|
|
Intent: Simplify dependencies between objects when state changes are a primary concern. Context: There are multiple possible contexts, but the most common is graphical user interfaces, where multiple displays need to show state information about the same objects. However, in general, the context could be any system where state changes need to be monitored by multiple components. Problem: The system includes a objects of certain classes (i.e., subjects) whose state changes must known by objects of other classes (i.e., observers). The subjects and the observers may be organized into sub-classes. |
Observer Pattern |
|
Intent: Attach any combination of additional responsibilities to an object at run time Context: Any system where combinations of features are possible and there is a potential for an explosion in the number of sub classes Problem: The actors of a system need to add or remove features to an object dynamically |
Decorator Pattern |