You are on page 1of 2

TCP2201 Object Oriented Analysis and Design

SESSION 1 2014/15
Lab 9 UML Behavioural Diagrams
Lab outcomes
By the end of todays lab, you should be able to
differentiate and draw different UML behavioural diagrams
interpret scenarios and statements and translate them to proper UML diagrams
recall and draw flow chart / flow diagrams
convert between different UML behavioural diagrams
UML Behavioural Diagrams
1. Dr. Lee supervised one of her final year student to develop a Courseware Management
System (CMS) as final year dissertation. A description follows:
The purpose of the CMS is to enable efficient management of the course material of
courses delivered in MMU such as TCP2201. Course administrator is allowed to view all
the courses offered in a particular trimester in MMU. He can also view topics covered
under a particular course and manage the information of the course. At the beginning of
the trimester, he will assign the course to the related tutors using CMS who have been
assigned by the faculty dean to assist him in tutoring the students. In addition,
information of tutors who are involved in delivering the course can be viewed and
managed online too. For tutors, their access to the system is limited. They can only
manage their own information and view the course calendar. Besides, the system also
allows students who are registered for the course to view the course calendar.
Draw a UML use case diagram for the system. You may have to make a few assumptions
about the manner in which a user interacts with this system
2. Consider the product delivery system (PDS) as described in the requirements below.

Customers make orders. Each order may have one or more items.
Orders are checked against inventory stock to see if all items in the order are
available
If item(s) are unavailable, the order is cancelled
If all item(s) are available, the order is completed and prepared for
delivery/dispatch to the customer
The order is completed when the order is delivered to the customer

Draw a state diagram depicting the PDS above.


TCP2201-T9/2014.15/WKS

3. Draw a UML use case diagram to illustrate the interactions between a computer user,
web browser, web server and server administrator. You have to make a few
assumptions about the manner in which a user interacts with this system
4. Figure below indicates the State Diagram for the inventory software class of Royal Car
Service Station:

i)
ii)
iii)
iv)
v)

How many states exist in the inventory software?


What are the states?
What is a guard?
Under what conditions does the shop owner need to order more fuel or spare parts?
When can the stock be back to normal?

5. Consider the process of ordering a pizza over the phone. Draw an activity diagram
representing each step of the process, from the moment you pick up the phone to the
point where you start eating the pizza. Your activity diagram should represent the
interactions between both parties involved in the process (customer and pizza
restaurant) and should depict any exceptions that can possibly occur
6. Consider the following scenario for an elevator (lift) system in a building with N floors.
The system contains the logic required to move the elevators between floors following
the constraints below
Each elevator has a set of N+2 buttons one button for each floor and one to open
and close doors
Floor buttons illuminate when pressed and move the elevator to the corresponding
floor. Illumination is cancelled when the floor is reached
Each floor (except first and top) has two buttons to request an elevator going up or
down. These buttons also illuminate when pressed and cancel when the elevator
arrives
With no requests, the elevator remains on the current floor with the doors closed
Draw the following diagrams to illustrate the behaviour of a typical elevator system. You
may make general assumptions about conditions which are not stated above.
Use case diagram
Class diagram
Sequence diagram
Collaboration diagram

TCP2201-T9/2014.15/WKS

You might also like