B.10 State pattern tags

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.
graphics/bfig10.gif

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 .



The UML Profile for Framework Architectures
The UML Profile for Framework Architectures
ISBN: 0201675188
EAN: 2147483647
Year: 2000
Pages: 84

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net