Command Design Pattern(Action, Transaction)
OutlineIntent & MotivationStructureApplicability & ImplementationExamples
Intent & MotivationEncapsulate a request as an objectIssue requests without knowing operationeg. Button & MenuItem in a toolkit
Basic Structureabstract Command class to define interfaceConcrete implementation links command to receiver
Structure
Applicability & ConsequencesDecouple invoker and receiverLink same command to multiple invokersMacroCommand: chain commands togetherUndo/Redo: store state and reversal
ImplementationCommand intelligenceState InformationReceiver, Arguments, Original Values, Copy CommandBinding OnlyNo Separate Receiver
								Example…

Command Pattern