



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Instructions: Answer five questions Examiners:^ Dr. M. O Cinneide Mr. M. Donnelly Ms. M. Davin Q1.
(a) Give an overview of the main aims of modelling software. [2]
(b) Explain what is meant by the Object model. [2]
(c) Differentiate between an object and a class. [2]
(d) Illustrate how a class and an object are illustrated in UML. [2]
(e) Explain what is meant by each of the following properties that apply to objects.
(i) Identity
(ii) State
(iii) Behaviour. [3]
(f) What is meant by the following:
(g) Use the following description to answer the questions below.
A warehouse wants to keep track of its parts and how they are used. Parts have a part number name and cost. Parts can be used in the manufacture of assemblies and assemblies can have a hierarchical structure. Several parts may have the same part number, name and cost. To avoid replication each part will be described in a catalogue entry.
(i) Draw a class diagram to illustrate the concepts above and their relationships. [4]
(ii) Explain how the cost of an assembly object could be realised using a collaboration between objects from the classes you have identified. [3]
(a) Differentiate between a class diagram and an object diagram. [2]
(b) How the object does oriented concept of message passing help to encapsulate the
implementation of an object including its data? [2]
(c) What is meant by the each of the following object oriented terms [4]
i Encapsulation
ii Abstraction
iii Dynamic binding
iv Polymorphism (d) Read the following specification and answer the questions below
A library holds the following books among many others: âHistory of World War 2â, âThe adventures of Robin Hoodâ and two copies of âHarry potter and the philosopherâs stoneâ. Joe and Martina are registered uses of the library. Joe currently has the âAdventures of Robin Hoodâ out on loan, and Martina has borrowed the âHistory of world war 2â and one
i. Draw an object diagram representing the objects and relationships implied by the following description of certain aspects of a library system [4] ii. One of the operations the library system must provide is the ability to send reminder letters to those borrowers who have overdue books on loan. Extend your model of the library system to store the date by which a borrowed book is to be returned, considering carefully which object should store this piece of data. Show on the diagram the messages that would be generated in response to an initial request to the library to send Reminders [6] iii. Draw a class diagram which would allow for the object diagram you produced in part (ii) to be supported. [2]
(a) Suppose that an environmental monitoring station contains three sensors, namely a thermometer, a rain gauge and a humidity reader. In addition, there is an output device, known as a printer, on which readings from these three sensors are shown. Readings are taken and transcribed onto the printer every five minutes. This process is known as âtaking a checkpointâ. (i) Draw an object diagram showing a possible plausible configuration for these objects, and include on the diagram the messages that might be generated in the system every time a checkpoint is taken. Assume that a checkpoint is initiated by a message form a timer object sent at five-minute intervals to the monitoring station. [4] (ii) Draw a class diagram summarizing the structure of the monitoring station. [2]
(b) Draw a class diagram to model the following situations.
(i) An Airline flight takes place between two airports. It is necessary to differentiate between the two airports as one is the airport from which the flight takes off from and the other is the destination airport. [3]
(ii) A student can register in any number of course sections and a course section can have many students. A student undertakes continuous assessment work and a final exam for each course section. It is a requirement that the results for each student in each course section are recorded [3] (iii) (^) Clients have advertising campaigns and a record is kept of each campaign. Each campaign includes one or more adverts. One member of staff manages each campaign. Other staff work on a campaign. Each Staff member is allocated a grade which may change over time. The start and finish dates that a staff member is on a particular grade needs to be recorded [3]
(c) What is meant by each of the following and how is it modelled in UML [5]
(i) Abstract Class (ii) Entity Class (iii) Class scoped attribute (iv) Attribute Visibility (v) Boundary class
(a) Read the following requirement specification and answer questions below.
A Video Club wants to automate its activities. It keeps two types of movies, educational and entertainment. For each movie the following information is kept: title, director, and duration. Additionally, âsubject areaâ (Arts, Science, etc.) is kept for educational movies and âmovie typeâ (Music, Dance, Comedy etc.) is kept for entertainment movies. A video is also given a certificate (e.g. GA- General Audience). Each video is assigned a category depending on its popularity and how recently it was released. Each category will have its own rental cost per night , loan period as well as the fine incurred if the loaned video copy becomes overdue. The video club has several copies of each movie. Each video copy is labelled with the movie title, unique serial number and date of purchase. Copies are shelved by serial number order.
Members of the club may keep five video copies on loan at a time. Members will not be allowed to borrow further videotapes if they have an overdue copy. Each member is assigned a membership number on joining the club. The following details are held on each member name, address, Date of Birth. The main requirements of the system are:
1. Search for a movie â members (or club secretary) should be able to get details (serial number, status) of movie copies available on the shelf or are out on loan (due date of return, if it is on loan). Users may search for a movie on its title (or a part of its title) or director. There may be more than one movie that satisfies search criteria. The user then selects the required movie from _the search results.
(i) Prepare a âuse caseâ model for all the specifications given in the case study. Write a brief use case description only for the second main requirement. (Enter a loan) [8]
(ii) The âclass diagramâ in UML may be used to design the conceptual model of a system. Draw a conceptual model for the given case study. Your model should include attributes and relationships (association with multiplicity and generalization-specialization) between the classes. [6] (iii) Draw a communication or a sequence diagram for the second main requirement in the given case study. Note this diagram should be consistent with the class diagram created in the previous part. [6]
You want to organize the various bookshelves in your room. Your room currently contains 2 bookshelves, but you are considering purchasing several more in the near future. Each bookshelf is positioned along one of the four walls in the room, and a maximum of two bookshelves can be placed along any one wall. Youâre kind of quirky, and you name each of your bookshelves. On each bookshelf are several items; items are either books or toys. Toys have a name, manufacturerâs name and a purchase date. Books have a title, author and publication date. Your bookshelf organization system needs to do the following things:
(a) Draw a class diagram to model the above situation. Include at least one interface in your diagram. Be as specific as possible using UML notation. Include attributes and operations. [8]
(b) Draw a sequence diagram corresponding to your class diagram for the situation where the user wants to print out their room as described above. Include an actor in your diagram, but this actor is allowed to send any message to any object he or she wishes. There are no boundary objects required. [8]
(c) Draw a collaboration diagram that is equivalent to the sequence diagram you drew in part B. [4]