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.
Tags | Strategy Context , |
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 . |