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.
Tags | Observer Subject , |
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 . |