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

Designing with Patterns - Essay Example

Cite this document
Summary
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. Composite; 2. Observer; 3.Iterator…
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER94.6% of users find it useful
Designing with Patterns
Read Text Preview

Extract of sample "Designing with Patterns"

Download file to see previous pages

This paper illustrates that the Composite design pattern perfectly suites the requirements of the Solent Cinemas booking system as well as the initial design given in the case study. Let us take a closer look at the classes represented in the class diagram. The ones below (directly taken from the design in the case study class diagram) are of particular interest with respect to the composite pattern: The class: Solent Cinemas holds a list of holds a list of all the cinemas in the chain and undertakes to the schedule of new films into the cinemas.

The class: Cinema holds a list of all its Screens. This shows a clear parent-child relationship existing between the two classes which are the essence of the composite design pattern. The diagram below of the two classes depicts the composition relation existing between the two classes i.e., the class Solent Cinemas is composed of objects of the class Cinemas. This is an interesting one and needs more elaboration. It looks as if the two classes are redundant, yet the class diagram shows a composition connection between the two.

By definition from the case study, the film class does the work of scheduling a show. The Show class essentially consists of the Film object but it also works in close association with the Ticket class, the Reservation class and the Screen class via the Show Schedule class. A good encapsulation rule is followed here to separate the Film and Show classes so the Film class’ responsibilities are maintained privately and the Show being compositely linked to the Film class takes the necessary details so that, for instance, the reservation class associated with the Show class gets on display only the necessary information, with the rest hidden in the Film class.

 The observer is a Behavioral Design Pattern and focuses on the communication patterns between objects. The Observer pattern assumes that the object containing the data is separate from the objects that display the data and that these display objects observe changes in that data.  When we implement the Observer pattern, we usually refer to the data as the Subject and each of the displays as Observers. Each of these observers registers its interest in the data by calling a public method on the Subject.

Then, each observer has a known interface that the subject calls when the data change.

...Download file to see next pages Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(Designing with Patterns Essay Example | Topics and Well Written Essays - 11250 words, n.d.)
Designing with Patterns Essay Example | Topics and Well Written Essays - 11250 words. Retrieved from https://studentshare.org/design-technology/1739715-editing
(Designing With Patterns Essay Example | Topics and Well Written Essays - 11250 Words)
Designing With Patterns Essay Example | Topics and Well Written Essays - 11250 Words. https://studentshare.org/design-technology/1739715-editing.
“Designing With Patterns Essay Example | Topics and Well Written Essays - 11250 Words”, n.d. https://studentshare.org/design-technology/1739715-editing.
  • Cited: 0 times

CHECK THESE SAMPLES OF Designing with Patterns

Patterns of Knowing

patterns of Knowing Date patterns of Knowing Nursing involves elaborate processes of dynamic interactions, which are critical in defining efficiency during dispensation of services within a healthcare setting.... The fundamental patterns of knowing according to Carper's theory are empirics, aesthetics, personal and ethical knowledge, which when integrated play a critical role in improving communication (Andrist, Nicholas and Volf, 2006).... patterns of Knowing patterns of Knowing Nursing involves elaborate processes of dynamic interactions, which are critical in defining efficiency during dispensation of services within a healthcare setting....
3 Pages (750 words) Essay

ADVANCED BUSINESS STRUCTURES: Organizational Plan of Autonomy

The Company was founded with the aim of delivering a computing platform that enabled computers to see patterns in people's use of information.... The technology was Competitive advantage and survival include the ability to recognize and act on patterns before others....
4 Pages (1000 words) Essay

Functional Health Pattern

The writer of this short essay "Functional Health Pattern" seeks to highlight the need for data analysis aimed at identifying health patterns among the population.... Thirdly, key informant interviews; utilizes questions at the end of the Functional Health patterns thus developing questions for the key informants and interviews....
2 Pages (500 words) Essay

Fashion Designer/ Training Part 2

They are trained to draw patterns for the designed articles, sketch rough drawings of accessories and stitch pattern sections to create sample garments.... Furthermore, they are also given an introduction to stitches, closures and patterns.... Fashion designing proves to be one of the most attractive and inventive career opportunities today.... Fashion designing proves to be one of the most attractive and inventive career opportunities today....
2 Pages (500 words) Essay

Questions about Out of Poverty Book by Paul Polak

When designing products for the group, Polak advises that an entrepreneur consider the consumption pattern of the group.... At 90% of the world population, it is, therefore, the greatest market and after designing products that appeal to the group, the next big feature of such a business becomes the mass production and determination of effective retail services....
4 Pages (1000 words) Assignment

The justification of love as a tool that can unite the world

The two are connected in intricate patterns through the circle.... I settled on designing a mandala to represent my idea.... The topic I chose for the art project is the justification of love as a tool that can unite the world.... Love is interpreted in different ways....
2 Pages (500 words) Essay

Impact of Cultural Dimensions on Worldviews

This creates a uniqueness in the manner the group, also known as patterns, address their issues.... From these characteristics of the different patterns, there are gender roles and people doing them may feel the assigning is based on a particular associated trait or observation.... Similarly, different family structures are patterns in the social world.... From these patterns, ideas emerge in relation to the upbringing of the people of these patterns and how it is probable to affect them or position them....
1 Pages (250 words) Essay

Patterns and Software Development

This section will also outline the effectiveness and usefulness of each of design patterns.... he observer designing pattern describes a one-to-many dependency among entities so that when one object changes its state, the entire of its dependents are informed as well as updated automatically....
9 Pages (2250 words) Coursework
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