|
Annex B: Design PatternsB8.PrototypeDescriptionWhen we want to create an object starting from an existing object, this pattern proposes the definition of a method of cloning which masks in the client the effective operations of duplication. Structure and Components
Structure and Components of the Prototype design pattern
Collaborations
Strengths and Weaknesses
Use in CBR*ToolsThis pattern is used for the constitution by cloning of a library of measurements of similarity, for the copying of weight vectors and for the configuration of the traverse of the indices. To carry out these clones, all the accessible objects from a similarity establish to themselves an operation of cloning. This operation turns over a new object identical to the prototype or the same object, if this one is non-modifiable (it will thus be shared by all the clones). ![]() ![]() Last modified: Fri Sep 28 13:52:19 MEST 2001 |