B.2 Template Method pattern tags

B.2 Template Method pattern tags

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

Figure B.2. Structure of the Template Method pattern annotated with UML-F tags.
graphics/bfig02.gif

Table B.2. Definition of the UML-F Template Method pattern tags.
Tags

TemplateM AbstractClass ,
TemplateM ConcreteClass ,
TemplateM templateM ,
TemplateM-primitiveOp , and
TemplateM-primitiveOp

Apply to

As shown in Fig. B.1:

Class ( TemplateM AbstractClass , TemplateM ConcreteClass )

Method ( TemplateM templateM , TemplateM-primitiveOp , TemplateM-primitiveOp )

Type String.
Expansion

The Template Method pattern is based on the Unification principle and therefore its tags expand as follows:

TemplateM AbstractClass to Unif TH ,

TemplateMethod templateM to Unif-t , and

TemplateM primitiveOp to Unif 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