Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
ANALYSIS
Spring-910 1
Spring-910 2
MIS326 Artifacts
analysis class - handles functional requirements; one of
three basic stereotypes: boundary, control or entity
Spring-910 3
Analysis Class
Analyse a
Use Case
Supplementary
Requirements
Use Case
Realisation
Spring-910 4
MIS326 Analysis Class
An abstraction of one or several classes in the final
system implementation
– focuses on handling functional requirements only
Spring-910 5
<<boundary>>
<<boundary>>
<<control>>
Use-case
behavior <<control>>
coordination
System
boundary
System
information <<entity>>
<<entity>>
Spring-910 6
Boundary Class
«boundary»
boundary
MIS326 boundary class name class name
Spring-910 7
Customer
Spring-910 8
MIS326 Identifying Boundary Classes
found from use case descriptions → start from actors
– Collect information from the actor
• identify forms and windows needed to enter data into the system
– Present information to the actor
• identify notices and messages the systems uses to respond
– do not model the visual aspects of the interface
identify one central boundary class for each external system actor
– represents the communication interface to the external system
Spring-910 9
MIS326
Example:Boundary Classes: Professor Actor
Professor Select courses to teach
SelectCoursesUI
Professor
RequestEnrollmentUI
SelectCoursesUI
Professor ProfessorUI
RequestEnrollmentUI
Spring-910 10
MIS326 Example:Boundary Classes: Professor Actor
CreateScheduleUI
ReviewScheduleUI
SelectCoursesUI
ProfessorUI ModifyScheduleUI
RequestEnrollmentUI
Spring-910 11
Entity Class
«entity»
entity
MIS326 entity class name class name
Spring-910 12
MIS326 What is an Entity Class?
Key concepts of the system
<<entity>>
Glossary
Spring-910 13
Spring-910 14
Example:
MIS326
Entity Classes: Select Courses To Teach
Course
ProfessorInfo
Spring-910 15
«control»
– complicated behavior may need to be divided among several control classes later on
Spring-910 16
MIS326 What is a Control Class?
Use case behavior coordinator
<<control>>
Use Case
Spring-910 17
MIS326
Example:
Control Class: Select Courses To Teach
Course
ProfessorInfo
Spring-910 18
MIS326
Interaction — Best Practices
Actors can interact only with boundary classes
Boundary classes can interact only with control
classes and actors
Spring-910 19
Spring-910 20
MIS326 Use Case Partitioning Example
Use-Case Model
Select courses to teach
«trace»
Analysis Model
Select courses to teach
Spring-910 21
MIS326
Summary:A First Step Towards Executables
Spring-910 22
MIS326
Summary: Find Classes From Use-Case Behavior
<<boundary>>
<<control>> <<boundary>>
<<entity>>
<<entity>>
Spring-910 23
Analysis Model
Schedule CourseCatalogSystem
Spring-910 24
MIS326
Entity Classes
Entity classes represent stores of information in the
system
Used to represent the key concepts the system
manages.
Entity objects (instances of entity classes) are used to
hold and update information about some
phenomenon, such as an event, a person, or some
real-life object.
They are usually persistent
Spring-910 25
Spring-910 26
MIS326 Example-1: Case Study: Video Rental
This problem is about a small, local video rental store (VRS). The problem will be limited
to rental, return, management of inventory (add/delete new tapes, change rental prices,
etc.) and producing reports summarizing various business activities. The rental items of
the store are limited to video tapes. Customer ID number (arbitrary number), phone
number or the combination of first name and last name are entered to identify customer
data and create an order. The bar code ID for each item is entered and video
information from inventory is displayed. The video inventory file is decreased by one
when an item is checked out. When all tape IDs are entered, the system computes the
total rental fee, and payments are processed. A return is processed by reading the bar
code of returned tapes. Any outstanding video rentals are displayed with the amount
due on each tape and a total amount due. The past-due amount must be reduced to
zero when new tapes are taken out. For new customers , the unique customer ID is
generated and the customer information is entered into the system. Videos are stacked
by their category such as Drama, Comedy, Action, etc. Any conflict between a customer
and computer data is resolved by the store manager. Rental fees can be paid by either
cash, check or a major credit card. Reporting requirements include viewing customer
rental history, video rental history, and titles by category, top ten rentals, and items by
status, and overdue videos by customers and outstanding balances by customers .
Spring-910 27
Inventory : Customer
Reports : Category
Store: Conflict
Combination : Titles
Spring-910 29
– Rule of Dependence :
• IF the identification of an object (noun) relies on another concept object (noun) THEN it is an
attribute.
– Rule of Independence :
• IF the noun represents an object which is important in its own right THEN it is a class.
Remove Values.
– The nouns represent a value itself.
Spring-910 30
MIS326 Finding Entity Classes- Categorize
Roles of People : humans who carry out some important function. Student, Employee, Customer.
Places : locations where important business activities are held. Office, Warehouse, Store.
Physical Things : tangible objects. Machine, Product, Device, and Book.
Organizations : important business units. Company, Team, and Department.
Events (Transactions) : important activities that need to record some data Order, Promotion,
Payment.
Transaction Line Items : an element of a transaction. Order-Line-Item, Purchase-Line-Item.
Concepts (Discovered Class; Intangible Things) : intangible ideas used to keep track of
business activities. Project, Account, Complaint
Specification: a description of other items that need to be distinguished from one another.
Video-Title, Flight-Plan.
Interaction : an association between two classes with meaningful attributes. Reservation.
Rules/Policies : important business rules. Rental-Policy and Shipping Method.
Containers of other things : classes that will contain other classes. Store, Shelf, Catalog, Bin.
Things in a container : classes that will be contained in another class. Item, Passenger, and
Video-Title in a catalog.
Financial Instruments and Services. They represent class that are used to support financial
activities. Stock, Bond, and Mortgage.
Spring-910 31
Spring-910 32
MIS326 Example-1:Class Diagram
Spring-910 33
Spring-910 34
MIS326 Example-2: Car Rental
Customer : Roles of People √
Reservation : Transaction √
Rental car : Redundant
Locations of the reservation : Place √
Pickup date, return dates/times : Attribute
Locations : Redundant
Dates : Attribute
Type of vehicle , vehicle type : Attribute
Vehicles : Physical Thing √
Pickup location : Redundant
Detail information : Vague
Full name, telephone number, email address : Attribute
Confirmation : Value
Protection products : Concept √
Damage waiver: Value
Personal accident insurance : Value
Product: Redundant
Reservation confirmation : Derived
Spring-910 35
Spring-910 36