The UML Profile for Framework Architectures

B.8 Observer pattern tags

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

Figure B.8. Structure of the Observer pattern annotated with UML-F tags.

Table B.8. Definition of the UML-F Observer pattern tags.

Tags

Observer Subject , Observer Observer ,

Observer ConcreteObserver , Observer notify , Observer update ,

Observer update , Observer observers

Apply to

As shown in Fig. B.8:

Class ( Observer Subject , Observer Observer , Observer ConcreteObserver )

Method ( Observer notify , Observer update , Observer update )

Interface ( Observer Subject , Observer Observer )

Association ( Observer observer )

Type String.
Expansion

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

Observer Subject to Sep T ,

Observer notify to Sep t ,

Observer Observer to Sep H , and

Observer update to Sep h .

Категории