Professional Documents
Culture Documents
HospitalServer : H
ost
BloodAna
lyzer PatientRe
(COTS) c
Analyzer update DBMS
TechnicianPC : PC
LabAnalyze
results r
Combining
Component and Deployment
Diagrams
Dynamic: Statechart
Diagram
• Statechart Diagrams: Tracks the States
that an Object Goes Through
• Captures Dynamic Behavior (Event-
Oriented)
• Purposes:
– Model Object Lifecycle
– Model Reactive Objects (User Interfaces,
Devices, etc.)
– Are Statecharts Complex FSMs?
– Sequence::Time vs.
Collaboration::Message vs.
Statechart::Event
Statechart Diagram
• Captures Dynamic Behavior (Event-
Oriented)
Statechart Diagram
Statechart Diagram
• Composite States Illustrated
• Fork and Join Possible
Statechart Diagram
HCA
pulse not Cuff Deflating
Cuff Inflating detected (2mmHg/sec)
Findin pulse Systoli
g detected c
pulse Pulse Found
pulse not
emergecy
shut-off
detected detected
Finding
Diastolic
Pulse
start Found
Idle
cuff
deflated Cuff Deflating
(max deflation
rate)
Statechart Diagram
Statechart Diagram
• Captures dynamic behavior (event-
oriented) – states of a particular object
•
• Figure 1 presents an example state machine diagram for the Seminar class during
registration. The rounded rectangles represent states: you see that instances of
Seminar can be in the Proposed, Scheduled, Open For Enrollment, Full, and
Closed to Enrollment states. An object starts in an initial state, represented by
the closed circle, and can end up in a final state, represented by the bordered
circle. This is the exact same notation used by UML activity diagrams, a perfect
example of the consistency of the UML.