SWEN-262 Study Guide - Midterm Guide: Command Pattern, Domain Model, State Pattern
Document Summary
An object that contains a symbol, name or key that represents a list of commands, actions or keystrokes . This is the definition of a macro: using composite commands: when adding new commands to the application we can use the composite pattern to group existing commands in another new command. This way, macros can be created from existing commands. Indicate what types of state must be maintained in a command object: another usage for the command design pattern is to run commands asynchronously in background of an application. Observer: describe the participant collaborations in an observer pattern. Observable - interface or abstract class defining the operations for attaching and de-attaching observers to the client. In the gof book this class/interface is known as. Subject . and when a change in the state occurs it notifies the attached observers . object. Observer - interface or abstract class defining the operations to be used to notify this.