The UML Profile for Framework Architectures

B.11 Strategy pattern tags

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

Figure B.11. Structure of the Strategy pattern annotated with UML-F tags.

Table B.11. Definition of the UML-F Strategy pattern tags.

Tags

Strategy Context , Strategy contextInt ,

Strategy strategy ,

Strategy Strategy , Strategy algInt , Strategy ConcreteStrategy ,

Strategy algInt

Apply to

As shown in Fig. B.11:

Class ( Strategy Context , Strategy Strategy , Strategy ConcreteStrategy )

Method ( Strategy contextInt , Strategy algInt , Strategy algInt )

Interface ( Strategy Context , Strategy Strategy )

Association ( Strategy strategy )

Type String.
Expansion

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

Strategy Context to Sep T ,

Strategy contextInt to Sep t ,

Strategy Strategy to Sep H , and

Strategy algInt to Sep h .

Категории