Lesson Plan Use Case Diagram
Lesson Plan Use Case Diagram
PRACTICAL PEDAGOGIC
EXAMINATION
JURY
PRESIDENT
RAPPORTEUR
MEMBER 1
MEMBER 2
DIDACTIC MATERIAL:
Chart, Blackboard, Computer ( with PowerAMC installed).
REFERENCES
Unified Modeling Language
http://en.wikipedia.org/wiki/Unified_Modeling_Language
UML basics: The Use Case Diagram
http://www.ibm.com/developerworks/rational/library/dec04/bell/
LESSON WORKING SHEET
DIDACTIC
STAGES DURATION TEACHING/LEARNING ACTIVITIES FORMATIVE EVALUATION
MATERIALS
Introduction
understood the
Correction of assignment - Chart
INTRODUCTION 20 mins previous lesson and
Present the objectives of teaching and learning are set for the new
- Blackboard
Activate previous knowledge lesson
Placing the learners under learning situation or `
good state or frame of mind
Teacher defines use case diagram - Students can define
Teacher gives the purpose of a use case diagram and give the purpose - Computer
Teacher demonstrates how to draw a use case of a Use Case diagram
- Chart
diagram
Teacher gives an example of a system and draws a - Students can list the
Development
Control the attainment of achievement of the - Objectives have been - Log book
objectives of the lesson attained
CONCLUSION Follow up individual performance of the learner
Conclusion
Give assignment
CONSOLIDATION
Announces title of the next lesson
PLAN OF THE LESSON WORKING ZONE VOCABULARY
6. Application Exercise
7. Consolidation Exercise
Lesson objectives
1. Introduction
To model a system, the most important aspect is to capture the dynamic behavior. Dynamic
behavior means the behavior of the system when it is running/operating. Only static behavior
is not sufficient to model a system rather dynamic behavior is more important than static
behavior. In UML, there are five diagrams available to model the dynamic nature and use case
diagram is one of them. Now as we have to discuss that the use case diagram is dynamic in
nature, there should be some internal or external factors for making the interaction.
These internal and external agents are known as actors. Use case diagrams consists of actors,
use cases and their relationships. The diagram is used to model the system/subsystem of an
application. A single use case diagram captures a particular functionality of a system.
Hence to model the entire system, a number of use case diagrams are used.
5
4. How to Draw a Use Case Diagram?
Use case diagrams are considered for high level requirement analysis of a system. When the
requirements of a system are analyzed, the functionalities are captured in use cases.
We can say that use cases are nothing but the system functionalities written in an organized
manner. The second thing which is relevant to use cases are the actors. Actors can be defined
as something that interacts with the system.
Actors can be a human user, some internal applications, or may be some external applications.
When we are planning to draw a use case diagram, we should have the following items
identified:
Functionalities to be represented as use case
Actors
Use case diagrams are drawn to capture the functional requirements of a system. After
identifying the above items, we have to use the following guidelines to draw an efficient use
case diagram:
The name of a use case is very important. The name should be chosen in such a way
so that it can identify the functionalities performed.
Give a suitable name for actors.
Do not try to include all types of relationships, as the main purpose of the diagram is
to identify the requirements.
The following is a use case describing a Hospital Reception System. Hence, if we look into
the diagram then we will find nine use cases (Schedule patient Appointment, Schedule
Patient Hospital Admission, Patient Registration, Patient Hospital Admission, File
6
Insurance Forms, File Medical Reports, Outpatient Hospital Admission, Inpatient
Hospital Admission and Bed Allotment) and one actor which is the Receptionist.
Schedule patient Appointment and Schedule Patient Hospital Admission are extended from
Patient Registration. Hence, they have extended relationship.
Patient hospital admission includes Patient Registration as a patient must be registered first
before he/she can be admitted, hence the have a direct relationship. Also, Inpatient Hospital
Admission includes Bed Allotment
Another important point is to identify the system boundary, which is shown in the picture.
The actor Receptionist lies outside the system as it is an external user of the system.
6. Application Exercise
7
address and/or the credit card information they want to use for paying. Credit card
information consists of the name on the credit card, the credit card company, the credit
card number, and the expiration date.
They can add as many DVDs to the shopping cart as they want, and they can also remove
DVDs. If they decide at some point to check out the shopping cart, then they are asked to
check the shipping address and credit card information supplied, and if either of those was
not supplied, they are asked to supply it. Next, they can review the contents of the
shopping cart, and if they agree, they can send the order. Then, the credit card information
is sent to the bank, and, if approved, the order is finalized. If the information was not
approved, then the customer is made aware of this, so he/ she can change the payment
option.
A delivery agent can check the status of online orders, and process an order, meaning that
it changes its status from “pending” to “delivered”.
Finally, the administrator is responsible for the DVD inventory. She can check the current
inventory, order new DVDs from the supplier, and add DVDs to the inventory.
a. Create a UML Use Case Diagram for the online DVD shop. In addition, give a detailed
description (pre-condition, post-condition, main scenario,…) of the use case for “check out
shopping cart”.
b. Based on your use case description of “check out shopping cart”, create a UML Sequence
Diagram.
c. Create a UML Activity Diagram to depict the business process for processing a DVD order.
There are three parties involved in processing an order: Shipping, Online Sales, and
Accounting. The process starts when Online Sales receives an order for DVDs from a user. To
complete the order, the store needs to charge the credit card and deliver the DVDs. To charge
the card, Online Sales sends the credit card information to Accounting, who will then validate
and process the credit card. To deliver the DVDs, Shipping will first fill the order, then
prepare the package, and finally deliver it. Once the DVDs are delivered and the credit card is
charged, the order is closed.
Solution
8
ONLINE DVD SHOP
confirm order
order new DVD
<<extend>>
supply DVD
<<extend>>
Add DVD to inventory
Log in <<include>>
Verify password and userame
<<extend>>
Create account
Add DVD
costumer
<<extend>>
Remove DVD
Search for DVDs
<<extend>>
<<extend>>
<<extend>>
Change payment mode
Order DVD
Review details
Recieve order
delivery agent
Check status order
<<include>>
send credit card info to bank Process order
9
7. Assignment
Draw a Use Case Diagram for a Credit card processing system.
Purpose: Define major use cases for a credit card processing system (credit card payment
gateway).
Summary: The merchant submits a credit card transaction request to the credit card payment
gateway on behalf of a customer. Bank which issued customer's credit card is actor which
could approve or reject the transaction. If transaction is approved, funds will be transferred to
merchant's bank account.
Solution
10