10 - Interaction Diagram
10 - Interaction Diagram
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
Interaction Diagram
Acknowledgement
Main Material
[Dennis, 2010] Dennis, Alan, et al, System Analysis and Design with UML, 3rd Edition, John Wiley & Sons, New Jersey, 2010.
Supplementary Materials
[Miles & Hamilton, 2006] Miles, Russ, and Kim Hamilton. Learning UML 2.0. Beijing: O'Reilly, 2006. Print. [OMG, 2005] Unified Modeling Language: Superstructure. Object Management Group, 2005. Print.
3
Key Ideas
BEHAVIORAL MODELS
Behavioral Models
INTERACTION DIAGRAMS
Interaction Diagrams
Use cases and classes alone are not enabling use to model how the system is actually going to its job.
Use cases allow your model to describe what your system must be able to do. Classes allow your model to describe the different types of parts that make up your systems structure.
Interaction diagrams model important runtime interactions between the parts that make up your system.
Source: [Miles & Hamilton, 2006]
8
Interaction Diagrams
Logical View
Process View
Physical View
Development View
Objects
an instantiation of a class
Operations
the behaviors of an instance of a class
Messages
information sent to objects to tell them to execute one of their behaviors
10
Sequence Diagrams
15
A dynamic model that shows the different states through which a single object passes during its life in response to events, along with its responses and actions
For example, they can be used to model the behavior of individual entities (e.g., class instances) [OMG, 2005]. Its helpful to model states of an object and the events causing state changes [Miles & Hamilton, 2006].
States
Events
Transitions
Actions
Activities
18
Q&A