The UML Profile for Framework Architectures

B.10 State pattern tags

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.

Figure B.10. Structure of the State pattern annotated with UML-F tags.

Table B.10. Definition of the UML-F State pattern tags.

Tags

State Context , State State ,

State ConcreteState , State request , State handle ,

State handle , State state

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 .

Категории