Академический Документы
Профессиональный Документы
Культура Документы
1
Objectives of UML
2
Structural Diagrams
3
Behavioral Diagram
4
From Requirements to Analysis
6
What is a Good Class?
8
Object Model
10
Object Modeling
12
Approaches to identification
17
Display and Keypad
18
Use Diagrams
19
Scenario: Powering Up
1. Power is turned on
2. Each sensor is constructed
3. User input buffer is initialized
4. Static elements of display are drawn
5. Sampling of sensors is initialized
23
Identify Objects
27
Relationships
28
More UML Diagrams
• Modeling Behavior
• Interaction Diagrams
• State Chart Diagrams
• Activity Diagrams
29
Refining the Object Model
• X-axis is objects
– Object that initiates interaction is left most
– Object to the right are increasingly more subordinate
• Y-axis is time
– Messages sent and received are ordered by time
• Object life lines represent the existence over a
period of time
• Activation (double line) is the execution of the
procedure.
32
Message Passing
33
Example UML Sequence Diagram
34
35
Prof. Majumdar CS 130 Lecture 4 36
Prof. Majumdar CS 130 Lecture 4 37
Example: Weather Station
38
Types of Diagrams
39
Example: Phone Call
Which of
the objects
are
boundary,
control and
entity?
40
Properties of Sequence Diagrams
41
Collaboration Diagrams
• Association
42
Example: Collaboration Diagram
43
Collaboration vs. Sequence
44
Summary (Interaction Diagrams)
45
State Diagrams
46
State Diagram Features
47
Example: on/off Switch
Button
off
depart push
on
48
Example
49
50
Prof. Majumdar CS 130 Lecture 4 51
Activity Diagrams
• Component diagrams
• Deployment diagrams
57
Component Diagrams
59
Deployment Diagrams
60
Example
61
With Components
62
Weather Station
63
ArgoUML
• http://argouml.tigris.org/
64
Opinions about UML: What’s Good
• A common language
– Makes it easier to share requirements, specs, designs
65
• Commercial tool support
Opinions On UML: What’s Bad
• Hodge-podge of ideas
– Union of most popular modeling languages
– Sublanguages remain largely unintegrated
67
Exercise
69