Académique Documents
Professionnel Documents
Culture Documents
Unit 6
Agenda
Important
Dates
Work
To-Do
Important Dates
Assignment Assignment 2 Assignment 3 Final Exam Due Dates Mar. 26 Apr. 09 TBA
Homework
I
Some
Copy
3/12/2014Chapter 2
ROI, Breakeven?
Copyright 2011 Pearson Education, Inc. Publishing as Prentice Hall 4
Homework
Did not follow the rules to draw DFD Type your work and organize your solutions in correct order If you put little or no effort into your homework, your exam suffers
3/12/2014Chapter 2
Midterm
Decision table not in correct format DFD did not follow the rules Fill in the blanks not good Some students got almost full mark Some students got very low mark Dont lose your confidence, you will have chance as long as you work hard. I gave you perfect marks in the part of in class practices
3/12/2014Chapter 2
Unit 6
Chapter 7 Appendix A Object-Oriented Analysis and Design: Use Cases
Learning Objectives
Explain
use cases and use case diagrams and how they can be used to model system functionality. Present the basic aspects of how to create written use cases. Discuss process modeling with use cases for electronic commerce application.
Chapter 7 Appendix A
Use Cases
A use case is a depiction of a systems behavior or functionality under various conditions as the system responds to requests from users. An actor is an external entity that interacts with the system.
Chapter 7 Appendix A
10
11
Most actors represent user roles, but actors can also be external systems. An actor is a role, not a specific user; one user may play many roles, and an actor may represent many users. A use case model consists of actors and use cases.
Chapter 7 Appendix A
12
Chapter 7 Appendix A
13
Chapter 7 Appendix A
14
with the functioning of the system at some basic level Represented by stick figures
as an eclipse
Chapter 7 Appendix A
15
boundary is the dividing line between the system and its environment. Use cases are within the boundary. Actors are outside of the boundary. Represented as a box
Chapter 7 Appendix A
16
a usage relationship Connection does not indicate data flow Actors are connected to use cases with lines. Use cases are connected to each other with arrows.
Chapter 7 Appendix A
17
Extend relationship is an association between two use cases where one adds new behaviors or actions to the other.
Extends
a use case by adding new behavior or actions Specialized use case extends the general use case.
Chapter 7 Appendix A
18
Include relationship is an association between two use cases where one use case uses the functionality contained in the other.
Indicates
a use case that is used (invoked) by another use case Links to general purpose functions, used by many other use cases
Chapter 7 Appendix A
19
20
Chapter 7 Appendix A
21
Figure 7-29 A template for writing use cases (Source: Cockburn, Alistair, Writing Effective Use Cases, 1st ed., 2001. Reprinted and Electronically reproduced by permission of Pearson Education, Inc. Upper Saddle River, New Jersey.)
Chapter 7 Appendix A
22
Refers to degree of detail in the use case description Five suggested levels (Cockburn)
1. 2. 3.
4.
5.
White as seen from clouds Kite birds-eye view Blue sea-level view Fish below sea-level Black bottom of the sea
Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall
summary
detail
Chapter 7 Appendix A
23
Stakeholders any group or individual with an interest in the function of the use case
Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 24
Chapter 7 Appendix A
Precondition conditions that must be satisfied in order to execute the use case Minimal guarantee outputs that can be expected if the service attempt failed Success guarantee outputs that can be expected if the service succeeds
Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 25
Chapter 7 Appendix A
Chapter 7 Appendix A
Represent work or actions Involve customer Fill order requires another actor: shipping clerk
The
first written use case deals with the entire process of buying a product at the WebStore
Summary use case without functional requirement
The
Browse catalog
2011 Pearson Education, Inc. Publishing as Prentice Hall
3/12/2014Chapter 7 Appendix A
Chapter 7 Appendix A
28
Use case at sea level Corresponds with Step 1 of kitelevel use case
Chapter 7 Appendix A
29
Summary
In
Explain use cases and use case diagrams and how they can be used to model system functionality. Present the basic aspects of how to create written use cases. Discuss process modeling with use cases for electronic commerce application.
Chapter 7 Appendix A
30
Chapter 7 Appendix B
Object-Oriented Analysis and Design: Activity Diagrams
Learning Objectives
Understand
Chapter 7 Appendix B
32
Activity Diagrams
Show
the conditional logic for the sequence of system activities needed to accomplish a business process. Clearly show parallel and alternative behaviors. Can be used to show the logic of a use case.
Chapter 7 Appendix B
33
Depict the flow of control from activity to activity. Help in use case analysis to understand what actions need to take place. Help in identifying extensions in a use case. Model work flow and business processes. Model the sequential and concurrent steps in a computation process.
2014 Pearson Education, Inc. Publishing as Prentice Hall 34
Chapter 7 Appendix B
Chapter 7 Appendix B
35
Branch:
a diamond symbol containing a condition whose results provide transitions to different paths of activities
a (circular ?) diamond symbol where different paths converge
2014 Pearson Education, Inc. Publishing as Prentice Hall 36
Merge:
Chapter 7 Appendix B
Swimlanes:
Chapter 7 Appendix B
Summary
In
Chapter 7 Appendix B
38
Chapter 7 Appendix C
Object-Oriented Analysis and Design: Sequence Diagrams
Learning Objectives
Understand
Chapter 7 Appendix C
40
Sequence diagram: depicts the interactions among objects during a certain period of time
May be presented either in a generic form or in an instance form. Generic form shows all possible sequences of interactions sequences corresponding to all the scenarios of a use case. Instance form shows the sequence for only one scenario.
Chapter 7 Appendix C
41
Objects: represented by boxes at top of diagram Lifeline: the time during which an object exists Messages: means by which objects communicate with each other
Chapter 7 Appendix C
42
Activation: the time period during which an object performs an operation Synchronous message: a type of message in which the caller has to wait for the receiving object to finish executing the called operation before it can resume execution itself
2014 Pearson Education, Inc. Publishing as Prentice Hall 43
Chapter 7 Appendix C
Simple message: a message that transfers control from the sender to the recipient without describing the details of the communication (represented by a transverse tick mark) Asynchronous message: a message in which the sender does not have to wait for the recipient to handle the message
2014 Pearson Education, Inc. Publishing as Prentice Hall 44
Chapter 7 Appendix C
FIGURE 7-38 Sequence diagram for a class registration scenario without prerequisites
Chapter 7 Appendix C
45
FIGURE 7-39 A generic sequence diagram for the prereq courses not completed use case
Chapter 7 Appendix C
46
FIGURE 7-40 Sequence diagram for Hoosier Burgers Hire employee use case
Chapter 7 Appendix C
47
Summary
In
Chapter 7 Appendix C
48
Chapter 7 Appendix D
Business Process Modeling
Learning Objectives
Understand
Chapter 7 Appendix D
50
Chapter 7 Appendix D
51
Basic Notation
Event: a trigger that initiates the start of a process Activity: an action that must take place for a process to be completed Gateway: a decision point Flow: shows the sequence of action in a process
Chapter 7 Appendix D
52
Chapter 7 Appendix D
53
Pool: a way to encapsulate a process with two or more participants (collaborative diagram)
Chapter 7 Appendix D
54
55
Summary
In
Chapter 7 Appendix D
56
3/12/2014Chapter 1
57
Work to do
Review
Appendices
Read
Chapter
8
on practice and discussion slides 2
58
Complete
Questions
Continue
Assignment
Copyright 2011 Pearson Education, Inc. Publishing as Prentice Hall
3/12/2014Chapter 1