Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: Prototype pattern


Related Topics

In the News (Tue 24 Nov 09)

  
  Design Pattern Synopses
The Filter pattern is a special case of the Decorator pattern, where a data source or data sink object is wrapped to add logic to the handling of a data stream.
The Composite pattern also allows the objects in the tree to be manipulated in a consistent manner, by requiring all of the objects in the tree to have a common superclass or interface.
The Flyweight pattern is often combined with the Composite pattern to represent the leaf nodes of a hierarchical structure with shared objects.
www.mindspring.com /~mgrand/pattern_synopses.htm   (4381 words)

  
  Prototype Patterns   (Site not responding. Last check: 2007-10-22)
The prototype pattern is used when creating an instance of a class is very time consuming or complex in some way.
When there are many subclasses that differ only in the kind of objects they create a Prototype Pattern can be used to reduce the number of subclasses by cloning a prototype.
This is one of the classical use of prototype pattern.
www.c-sharpcorner.com /Language/PrototypePatternsinCSRVS.asp   (412 words)

  
 Lifecycle and Refactoring Patterns that Support Evolution and Reuse   (Site not responding. Last check: 2007-10-22)
During a discussion on the patterns mailing list, Booch and Cunningham [11] claimed that many of the objects in a system may be found via a simple examination of the grammatical relationships in the system's specification.
The prototype phase may involve the application of analysis and design methods (such as [5], [8] and [26]) as well as the development of initial prototype implementation.
As noted for the prior pattern, the class hierarchies that emerge during the prototype and expansion phases are often functional, but neither elegant nor reusable.
www.laputan.org /Lifecycle.html   (5264 words)

  
 OODesign - Quality Articles and Tutorials about Software Design Principles and Patterns - Prototype   (Site not responding. Last check: 2007-10-22)
If we are using the Prototype pattern then the object used in the first analysis will be cloned and used for the other analysis.
Usually, a shallow clone is enough and very simple, but cloning complex prototypes should use deep clones so the clone and the original are independent, a deep clone needing its components to be the clones of the complex object’s components.
In this case the initialization should be done by using setting and resetting operations of the prototype class or by using an initializing method that takes as parameters the values at which the clone’s internal states should be set.
www.oodesign.com /oo_design_patterns/creational_patterns/prototype.html   (874 words)

  
 Stereolithography Prototypes, SLA Prototyping - ProtoCAM SLA Services
Most stereolithography prototyping can be completed in as little as 1 to 2 days, with larger projects typically completed in under 5 days.
Stereolithography prototypes can be used as master patterns for injection molding core and cavity inserts, thermoforming, blow molding, and various metal casting processes.
To create a SLA rapid prototype, first a three-dimensional CAD part is "sliced" horizontally into cross-sections between 0.002" and 0.006" thick.
www.protocam.com /html/slapro.html   (799 words)

  
 Design Pattern Questions
A bridge is a structural pattern that influences the creation of a class hierarchy by decoupling an abstraction from the implementation.
Thus we may define a composite pattern and call an operation on the component, when we wish to issue an operation on a few composite objects, and all the leaf objects.
We could then use a behavioral pattern such as strategy to couple together a family of policies to be used depending on the classes.
www.cs.unc.edu /~aikat/courses/204/patterns   (3032 words)

  
 Elena Fanea and David Baker- Prototype
The prototype pattern can be used in situations where the regular construction of a concrete object would be too complex (compared to cloning a pre-existing object), or where there is a desire to isolate the client from having to know about all concrete product classes (similar to Abstract Factory).
The prototype pattern is especially useful for cases where the construction and initialization of an object would be more complex or time involving than the cloning (and modification) of an existing object.
One difficulty in implementing the Prototype pattern in Java is that if the classes already exist, we may not be able to change them to add the required clone or deepClone methods.
pages.cpsc.ucalgary.ca /~faneael/Prototype_document.htm   (2662 words)

  
 Prototype
Composite, which is often used with prototypes to make a part-whole relationship.
The prototype is typically used to clone an object, i.e.
When an object is complicated or time consuming to be created, you may take prototype pattern to make such object cloneable.
www.javacamp.org /designPattern/prototype.html   (396 words)

  
 Prototype   (Site not responding. Last check: 2007-10-22)
Prototype co-opts one instance of a class for use as a breeder of all future instances.
Prototypes are useful when object initialization is expensive, and you anticipate few variations on the initialization parameters.
Prototype is unique among the other creational patterns in that it doesn't require a class – only an object.
home.earthlink.net /~huston2/dp/prototype.html   (710 words)

  
 Design Pattern Synopses from Patterns in Java, Volume 1 Second Edition
The Decorator pattern extends the functionality of an object in a way that is transparent to its clients, by implementing the same interface as the original class and delegating operations to the original class.
The Guarded Suspension pattern is used in the implementation of the Double Buffering pattern to coordinate the actions of data-requesting threads with the read-ahead thread.
The two phase termination pattern may be used in the implementation of the Double Buffering pattern to shut down the read-ahead thread in an orderly way.
www.markgrand.com /pattern_synopses1_2ed.html   (5418 words)

  
 Increased runtime flexibility and future proofing; the GOF Creational Patterns with C# - by Barry Mossman   (Site not responding. Last check: 2007-10-22)
There are various patterns which are designed to isolate such algorithms away into a helper class on their own which is a design technique that is ready for change and likely to minimise impact upon other sections of our code.
The pattern relieves the client of the responsibility of ensuring that there is just the one instance regardless of how many attempts are made to instantiate the object.
The Singleton pattern is a specialist creational pattern as it's primary focus is to facilitate a single shared instance of our object rather than to decouple our client from the object's implementation as with the other creational patterns.
dn.codegear.com /article/32049   (4309 words)

  
 Patterns: Non-Software Examples of Software Design Patterns - AGCS
The roots of the patterns movement are found in the writings of architect Christopher Alexander, who describes a pattern as a generic solution to a given system of forces in the world [1].
Patterns are expected to provide a vocabulary for discussing structures larger than modules, procedures, or objects [10].
The importance of mental imagery to pattern languages was not lost on Alexander, who stated that a language was not morphologically complete until the types of buildings that it generates could be visualized concretely [1].
www2.ing.puc.cl /~jnavon/IIC2142/patexamples.htm   (3538 words)

  
 Elena Fanea and Dave Baker - Implementation of Prototype pattern
Specific to this pattern is that the new object is obtained by cloning an existing prototype object, not created from scratch.
The prototype manager becomes the owner of the passed in prototype object, and as such is responsible for cleaning up after it.
If each prototype was modified to include basic information concerning its basic type or functionality, then clients could search the database without having to know the exact string label of a particular prototype.
pages.cpsc.ucalgary.ca /~faneael/Implementation.htm   (1880 words)

  
 Design Patterns   (Site not responding. Last check: 2007-10-22)
The Prototype pattern specifies the kind of objects to create using a prototypical instance.
Prototypes of new products are often built prior to full production, but in this example, the prototype is passive and does not participate in copying itself.
The mitotic division of a cell - resulting in two identical cells - is an example of a prototype that plays an active role in copying itself and thus, demonstrates the Prototype pattern.
www.iua.upf.es /~xamat/ES1/external/patterns/dp/prototype_nf.html   (350 words)

  
 Prototype Pattern   (Site not responding. Last check: 2007-10-22)
Source code: PrototypePatternCode.zip 2 KB The Prototype pattern is used when creating an instance of a class is very time-consuming or complex in some way.
Prototypes can also be used whenever you need classes that differ only in the type of processing they offer i.e.
We can use Prototype pattern to reduce the number of subclasses by cloning a prototype.
www.c-sharpcorner.com /Code/2002/Mar/PrototypePattersAJ.asp   (638 words)

  
 prototype
The intent of the Prototype pattern is to specify the kinds of objects to create using a prototypical instance, and to create new objects by copying this prototype.
The Prototype pattern is useful when a system should be independent of how its products are created, composed and represented, especially when instances of a class can have one of only a few different combination of states or these classes to instantiate are specified at run-time.
The hardest part of implementing a Prototype pattern is considered to be the implementation of clone operation.
sern.ucalgary.ca /courses/SENG/609.04/W98/adi/prototype.html   (290 words)

  
 Pattern Summaries: Prototype
A complete pattern will also provide reasons to use and not use the solution, the consequences of using the solution and suggestions on how to implement the solution.
The most important requirement for objects to be used as prototypes is that they have a method, typically called clone, that returns a new object that is a copy of the original object.
Generalizing this, the Prototype pattern enables a class to create objects that implement a known interface by giving it a prototypical instance of each kind of object it will create.
www.developer.com /java/other/print.php/626461   (1370 words)

  
 Prototype pattern - Wikipedia, the free encyclopedia
A prototype pattern is a creational design pattern used in software development when the type of objects to create is determined by a prototypical instance, which is cloned to produce new objects.
This pattern is used for example when the inherent cost of creating a new object in the standard way (e.g., using the 'new' keyword) is prohibitively expensive for a given application.
The client, instead of writing code that invokes the "new" operator on a hard-wired class name, calls the clone() method on the prototype, calls a factory method with a parameter designating the particular concrete derived class desired, or invokes the clone() method through some mechanism provided by another design pattern.
en.wikipedia.org /wiki/Prototype_pattern   (562 words)

  
 Design Pattern catalog
Composite Pattern: Creates an object (a composition of objects), each of which may be a simple or a composite object.
Proxy Pattern: creates a simple object that takes the place of a more complex object which may be invoked later, such as when the program runs in a networked environment.
Chain of Responsibility pattern: allows decoupling between objects by passing a request from one object to the next in a chain until the request is recognized.
www.cs.pitt.edu /~chang/231/seminars/S05pga/Page7.htm   (476 words)

  
 Prototype Cast Parts from PERIDOT, Inc.
Prototype sand castings can be made using three primary tooling options.
If a part has basic geometry without small features and the desired quantity of parts is less than 10-20 pieces, the RP pattern can be directly mounted to the pattern board and used in the foundry.
To produce the plastic pattern a “splash” or reproduction of the RP pattern is done in a filled high wear plastic.
www.peridotinc.com /prototype-cast-parts.html   (341 words)

  
 ProtoType
The following example uses the Prototype pattern to allow an application to be dynamically configured with a UI skin.
Cloning prototypes with complex structures requires deep copy because the copy and the original must be independent.
Prototype greatly reduces the number of classes a system needs by specifying new objects by varying values.
www.diranieh.com /DP/Prototype.htm   (585 words)

  
 CIOL : Languages & Tools : Prototype Pattern   (Site not responding. Last check: 2007-10-22)
When the number of prototypes in a system isn’t fixed (they can be created and destroyed dynamically), keeping a registry of available prototypes is good idea.
The Abstract Factory can be a good alternative to Prototype pattern if there is no need for the dynamic changes that the Prototype pattern allows to a palette of Prototypical objects.
The Factory method can be a good alternative to the Prototype pattern when the palette of prototypical objects never contains more than one object.
www.ciol.com /content/search/showarticle1.asp?artid=25030   (611 words)

  
 Capital Pattern and Model, Inc.   (Site not responding. Last check: 2007-10-22)
The company was a close-tolerance, hands-on operation that specialized in prototype pattern equipment and die model making.
Throughout the 1980s, the business changed greatly as the nature of die model work changed and the industry focused increasingly on plastic prototypes and patterns.
Throughout the 1990s, Capital Pattern has taken its operations to a new level by introducing significant advances in technology into the company's pattern-making business.
www.capitalpattern.com /history.asp   (171 words)

  
 Thoughts on C++ copy constructors, the Prototype design pattern and ICloneable interface
Last week on the train I was reading Design Patterns in C# by Steven John Metsker and came across the Prototype pattern.
A short description of the Prototype patern is this (from the front cover of the book): Provide new objects by copying an example.
This class is an abstract base class that will be used to create the prototype later or implement the prototype pattern how ever you want to look at it.
jasonhaley.com /blog/archive/2005/03/27/61501.aspx   (1074 words)

  
 Prototype
Prototypes can also be used whenever you need classes that differ only in the type of processing they offer, for example in parsing of strings representing numbers in different radixes.
In this sense, the prototype is nearly the same as the Examplar pattern described by Coplien [1992].
Finally, the idea of having prototype classes to copy implies that you have sufficient access to the data or methods in these classes to change them after cloning.
www.patterndepot.com /put/8/Prototype.html   (1245 words)

  
 Proxy pattern - Wikipedia, the free encyclopedia
A well-known example of the proxy pattern is a reference counting pointer object, also known as an "auto pointer".
The proxy pattern can be used in situations where multiple copies of a complex object must exist.
In order to reduce the application's memory footprint in such situations, one instance of the complex object is created, and multiple proxy objects are created, all of which contain a reference to the single original complex object.
en.wikipedia.org /wiki/Proxy_pattern   (499 words)

  
 Central Pattern - rapid prototyping
Central Pattern offers three solutions to your rapid prototyping needs: the Helisys LOM™ machine, the 3D Systems Actua™ machine, and high-speed CNC machining of various materials.
They can be used for functional prototypes, visualization aids, and as prototype pattern equipment.
They can be used as visualization aids or as prototype pattern equipment.
www.centralpattern.com /rapidpro.shtml   (179 words)

  
 Creational Design Patterns by Gopalan Suresh Raj   (Site not responding. Last check: 2007-10-22)
is a type of design pattern that is used for creating groups of dependant instances of classes without specifying their concrete classes.
Design Pattern separates the creation of an instance of a class from its representation so that the same creation pattern can be used for creating different representations of the object.
Design Pattern makes sure that at any point of time, there is one and only one instance of a class present and also provides a global point of access to the object.
my.execpc.com /~gopalan/design/creational.html   (193 words)

  
 DevCity.NET :: Prototype Pattern in C# and VB.NET
The Prototype pattern is used when creating an instance of a class is very time-consuming or complex in some way.
Prototypes can also be used whenever you need classes that differ only in the type of processing they offer i.e.
We can use Prototype pattern to reduce the number of subclasses by cloning a prototype.
www.devcity.net /Articles/21/1/20020306.aspx   (606 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.