Lab 04 - SCNLAB
Lab 04 - SCNLAB
1. Outline
• Visual modeling.
• Introduction to UML.
• Introduction to visual modeling with UML.
• Use case diagrams: discovering actors and use cases.
2. Background
Visual Modeling is a way of thinking about problems using models organized around
real-world ideas. Models are useful for understanding problems, communicating with
everyone involved with the project (customers, domain experts, analysts, designers,
etc.), modeling enterprises, preparing documentation, and designing programs and
databases
system's intended functions (use cases), its surroundings (actors), and relationships
between the use cases and actors (use case diagrams).
2.5 Actors
• Are NOT part of the system – they represent anyone or anything that must
interact with the system.
• Only input information to the system.
• Only receive information from the system.
• Both input to and receive information from the system.
• Represented in UML as a stickman.
TASK:
Now you will learn how to apply the above-mentioned methods to draw use case
diagrams
1. From the problem statement of your project.
1. Actors
Donor
Receiver
2. Use cases with each actor
Donor Registration
Manage Users
Generate Report
Update his details
System authorization
Request for blood
Update the database
Send Alerts
3. Finally: draw the main use case diagram:
5. Exercises
Read carefully the following problem statement
We are after a system that controls a recycling machine for returnable bottles and
cans. The machine will allow a customer to return bottles or cans on the same
occasion.
When the customer returns an item, the system will check what type has been
returned. The system will register how many items each customer returns and, when the
customer asks for a receipt, the system will print out what he deposited, the value of the
returned items and the total return sum that will be paid to the customer.
The system is also be used by an operator. The operator wants to know how many items
of each type have been returned during the day. At the end of the day, the operator
asks for a printout of the total number of items that have been deposited in the machine on
that particular day. The operator should also be able to change information in the system,
such as the deposit values of the items. If something is amiss, for example if a can gets
stuck or if the receipt roll is finished, the operator will be called by a special alarm signal.
Ask Receipt
Print Receipt
Whole Day Deposited
Total Deposited Receipt
Update Info
Alarm Signal
6. Find extended or uses use cases (if applicable)
Bottle extend Can
Check Return extend Register Return
Ask Receipt
Print Receipt
Whole Day Deposited
Total Deposited receipt
Update Info
Alarm Signal