Figure B.10 shows the static structure of the State pattern (Gamma et al. 1995) annotated with UML-F tags. Table B.10 summarizes the State pattern UML-F tags. State is based on the Separation construction principle.
Tags | State Context , |
Apply to | As shown in Fig. B.10: Class ( State Context , State State , State ConcreteState ) Method ( State request , State handle , State handle ) Interface ( State Context , State State ) Association ( State state ) |
Type | String. |
Expansion | The State pattern is based on the Separation principle and, therefore, its tags expand as follows: State Context to Sep T , State request to Sep t , State State to Sep H , and State handle to Sep h . |