StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...

Design Patterns - Behavioral, Creational, Structural - Research Paper Example

Cite this document
Summary
Design Patterns ITEC N452: Advanced Object Oriented Analysis & Design University name 3rd June 2013 Contents Introduction 3 Memento Pattern 3 Benefits and drawbacks 4 Singleton pattern 4 Benefits and drawbacks 4 Facade Pattern 5 Benefits and drawbacks 5 References 7 Introduction In software engineering, a design pattern represents a re-usable solution to a recurrent problem for a certain context…
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER91.2% of users find it useful
Design Patterns - Behavioral, Creational, Structural
Read Text Preview

Extract of sample "Design Patterns - Behavioral, Creational, Structural"

Download file to see previous pages

There are several classifications of design patterns - this essay focus on three designs, including memento for behavioral patterns, singleton for creational patterns and lastly facade for structural patterns. Memento Pattern This is a software design pattern that has the capability of bringing back an object to its initial state. As a pattern, it allows the initial state of an object to be restored without interfering with the rules of encapsulation. This means that the arising object can be designed appropriately, though it can be restored to its original state.

Therefore, memento pattern has the ability of restoring the internal state of an object without breaking the encapsulation rules. As a behavioral pattern, Memento indicates the manner through which communication between entities or classes is achieved (Schmidt, 1997). Basically, the design pattern is popular in applications with “undo’ functionality. Memento pattern has two participants: the caretaker and the originator. The originator restores memento to its internal state while the caretaker guarantees memento safekeeping.

According to Gamma et al. (1995), memento does not allow access to other objects other than originator. It has two interfaces, including narrow and wide interface. Caretakers only find the narrow interface and pass memento to other objects while the originator finds the wider interface through which it allows access to data that enabling restoration of the initial state. Benefits and drawbacks Memento pattern has chain of responsibilities that offers great flexibility especially when processing an application.

In this case, it manages complex events by dividing the responsibilities into simpler elements that allows a set of classes to behave as a whole. However, the flexibility of this pattern is hard to develop, debug and test. This is because the chain becomes extremely complex. In addition, failure to plan for varied forwarding possibilities could result to messages that lack a handler, hence failing to attract any response. Singleton pattern Singleton is a creation design pattern that ensures only one object of a given class is created.

It has only one class that is accessible by clients from identifiable access points. The single class must be extensible and the clients should easily use extended instances without alteration to their codes. Therefore, this pattern is particularly useful when a single object is needed to manage actions across a system. Singleton ensures efficiency when creating numerous identical objects and it uses a particular algorithm that requires a single point of control to interact with a resource that cannot be shared.

Benefits and drawbacks The singleton pattern exerts control over the instantiation process and therefore this class has the flexibility to change the instantiation process. In addition, singleton pattern ensures that every object accesses the singleton object and preventing other objects from instantiating their own copies. However, weaknesses associated with singleton pattern includes introduction a global state into the program. It allows uncontrolled access to the program hence being one of the most used patterns.

In this regard, programs that are heavily used are difficult to test. This is because it is not possible to test it without testing other

...Download file to see next pages Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(“Design Patterns - Behavioral, Creational, Structural Research Paper”, n.d.)
Retrieved from https://studentshare.org/information-technology/1479381-design-patterns-behavioral-creational-structural
(Design Patterns - Behavioral, Creational, Structural Research Paper)
https://studentshare.org/information-technology/1479381-design-patterns-behavioral-creational-structural.
“Design Patterns - Behavioral, Creational, Structural Research Paper”, n.d. https://studentshare.org/information-technology/1479381-design-patterns-behavioral-creational-structural.
  • Cited: 0 times

CHECK THESE SAMPLES OF Design Patterns - Behavioral, Creational, Structural

Reciprocity in Intergenerational Family Therapy

hellip; The author states that the actual design stresses upon the development and also the competence associated with effective developing steps.... The paper “Reciprocity in Intergenerational Family Therapy” discusses symbolic-experiential family therapy, which is actually grounded within an existential perception associated with individuals' progression that highlights that tendencies are unable to end up....
4 Pages (1000 words) Research Proposal

Personality and Individual Differences

Even though it is logical to classify people according to the specific words known by them, the more than 2^ (500,000) possible response patterns that are likely to be achieved by questioning people on the English words which exceed 500,000 brings in more complexity instead of lessening the work (Funder, 2001).... Classical Test Theory tends to ignore individual response patterns and estimates a person's entire vocabulary by measuring performance using a small sample of words....
6 Pages (1500 words) Essay

Creational and Behavioral Design Pattern: Commands in the Function

The focus of this paper "creational and Behavioral  Design Pattern: Commands in the Function" is on commands in the function.... nbsp;In this behavioral design pattern, the command abstract class is able to declare the interface.... his design pattern model one too many dependencies between the objects in the algorithm.... This design pattern is creations in nature and connects the state of an observed object to the subject with many observing objects and the observers....
2 Pages (500 words) Assignment

Hidden Spaces in a House

The quality to engender manufacture in sequence unswervingly from design in the sequence is what characterizes the most philosophical characteristic of fashionable façade.... The most architecture incorporates the mock-up or prototype make-up by employing a conduit to draft, read sandwiches between the lines that are spatially synchronizing strong built-up that affects the final outcome of the design process.... In this paper the digital architectural approach of the paper has been debated in black and white, the main purpose with this approach is to investigate a thin margin flanked by the perception of space and the resulting design of students, who use workstation realistic and illustrations as a design tool for space constituent....
15 Pages (3750 words) Essay

Designing with Patterns

This research is being carried out to evaluate and present the main aspects of the following design patterns, focussing on their effectiveness and usefulness for the given case study - Solent Cinemas booking system: 1.... hellip; According to the research, the composite is a structural Design Pattern that focuses on the relationships/interfaces between entities and objects.... nbsp;The observer is a behavioral Design Pattern and focuses on the communication patterns between objects....
45 Pages (11250 words) Essay

The DNA Origami Protocol

The paper "The DNA Origami Protocol" represents a good explanation of the design of the antennae with the DNA scaffold.... Having a design of such structures has been a problem since it takes months and years.... nbsp;The antennas are used in the nanocarriers whereby they are used in the engineering field....
16 Pages (4000 words) Research Paper

Analysis and Design Patterns in Computer Science

As the paper outlines "Analysis and design patterns in Computer Science", in the world we are living in today, computers became a necessity in the way we carry out the various activities that we are always involved in.... There are analysis and design patterns that are hugely applied in coming up with reliable; information systems.... Solution- this includes all the structural characteristics and behavioral characteristics that are included in coming up with the pattern....
10 Pages (2500 words) Report

Affect Architecture on Behavior of the Society

In some cases, architectural aspects are seen in ways that develop special patterns of interaction, communication, and biases.... Some buildings design, express values of security, reliability, and trust.... This paper "Affect Architecture on Behavior of the Society" tells that in an examination of how scholars have argued and expressed understanding of architecture, it is possible to develop coherent arguments on how power control affects behavior and people (Lockton, 2011)....
6 Pages (1500 words) Literature review
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us