Академический Документы
Профессиональный Документы
Культура Документы
Lab 4
Introduction to UML and Use Case Diagram
Objectives
Study the benefits of visual modeling.
Learn use case diagrams: discovering actors and discovering use cases.
Practice use cases diagrams using Visual Paradigm
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
What is UML?
The UML is the standard language for visualizing, specifying, constructing and documenting the artifacts
of a software-intensive system. UML can be used with all processes throughout the development life
cycle and across different implementation technologies
Use Case
A sequence of transactions performed by a system that yields a measurable result of values for a
particular actor
A use case typically represents a major piece of functionality that is complete from beginning to
end. A use case must deliver something of value to an actor.
1|Page
OOSE Lab#4
Lab Tasks
Task 1: Draw a use case diagram for a ticket distributor for a train system. The system includes two
actors: a traveler, who purchases different types of tickets, and a central computer system, which
maintains a reference database for the tariff. Use cases should include: BuyOneWayTicket,
BuyWeeklyCard, BuyMonthlyCard, UpdateTariff. Also include the following exceptional cases: Time-Out
(i.e., traveler took too long to insert the right amount), TransactionAborted (i.e., traveler selected the
cancel button without completing the transaction), DistributorOutOfChange, and
DistributorOutOfPaper.
2|Page
OOSE Lab#4
1. Actors
Customer
Operator
Operator:
CheckItemType
CheckItemValue
CountItem
CalculateSum
TotalItemsInADay
PrintTotal
UpdateInformation
ErrorSignal
Extends:
GenerateReceipt
Error Signal
ii. GenerateReceipt:
Includes:
ReturnItems
CheckItemValue
CalculateSum
Extends:
Error Signal
iii. TotalItemsInADAy
Includes:
PrintTotal
CountItem
CheckItemType
3|Page
OOSE Lab#4
4|Page
OOSE Lab#4
Task 3: Draw a use case diagram of your term project using Visual Paradigm
5|Page