The UML Profile for Framework Architectures

B.6 Command pattern tags

Figure B.6 shows the static structure of the Command pattern (Gamma et al. 1995) annotated with UML-F tags. Table B.6 summarizes the Command pattern UML-F tags. Command is based on the Separation construction principle.

Figure B.6. Structure of the Command pattern annotated with UML-F tags.

Table B.6. Definition of the UML-F Command pattern tags.

Tags

Command Invoker , Command Command ,

Command ConcreteCommand , Command clientM , Command execute ,

Command execute , Command command

Apply to

As shown in Fig. B.7:

Class ( Command Invoker , Command Command , Command ConcreteCommand )

Method ( Command clientM , Command execute , Command execute )

Interface ( Command Invoker , Command Command )

Association ( Command-command )

Type String.
Expansion

The Command pattern is based on the Separation principle and therefore its tags expand as follows:

Command Invoker to Sep T ,

Command clientM to Sep t , and

Command Command to Sep H , and

Command execute to Sep h .

Категории