Where Are We?
Where Are We?
Where Are We?
Where Are We?
Where Are We?
Show Unresolved Objects
Show Unresolved Messages
Review

Диаграммы взаимодействия в Rose. (Тема 6)

1.

Тема 6: Диаграммы взаимодействия

2. Where Are We?

Classes
Interaction diagrams
Elements of a sequence diagram
Elements of a collaboration diagram
Reports
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
2

3.

What Are Classes?
A class is a set of objects that share the
same attributes, operations, relationships,
and semantics.
In the UML, a class is represented by a
compartmentalized rectangle.
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
3

4.

Attributes
An attribute defines the characteristics or
structure of a class.
In the UML, a class attribute is displayed in
the middle of the compartmentalized
rectangle.
Attribute
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
4

5.

Operations
An operation is the service provided by the
class. It is the behavior of the class.
In the UML, a class operation is displayed
in the bottom of the compartmentalized
rectangle.
Operations
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
Responsibilities
5

6.

How Are Classes Found?
Classes can be discovered using various
artifacts.
Use-Case
Specification
Stakeholder Requests
Classes
Glossary
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
6

7. Where Are We?

Classes
Interaction diagrams
Elements of a sequence diagram
Elements of a collaboration diagram
Reports
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
7

8.

What Are Interaction Diagrams?
An interaction diagram models the dynamic
aspects of the system by showing
relationships among objects and the
messages they may dispatch.
There are two types of interaction diagrams.
Sequence
Collaboration
Sequence Diagram
Collaboration Diagram
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
8

9.

What Are Interaction Diagrams?
As with use-case diagrams, you will use
specific input artifacts to create interaction
diagrams.
Use-Case
Specification
Use-Case Diagram
Glossary
Interaction Diagrams
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
9

10.

What Are Interaction Diagrams?
Interaction diagrams are modeled in the
Logical View under the appropriate usecase realization.
They are created based on the use cases
included in the use-case model and the
use-case flow of events.
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
10

11. Where Are We?

Classes
Interaction diagrams
Elements of a sequence diagram
Elements of a collaboration diagram
Reports
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
11

12.

What Are Sequence Diagrams?
A sequence diagram is an interaction
diagram that emphasizes the time ordering
of messages.
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
12

13.

What Are Sequence Diagrams?
A sequence diagram is made up of the
following basic elements
Actors
Objects
Messages
Lifelines
Focus of control
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
13

14.

Actors
An actor is someone or something outside
the system that interacts with the system,
either by giving or receiving information or
both.
Actor
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
14

15.

Objects
An object is an entity with a well-defined
boundary and identity that encapsulates
state and behavior.
An object is an instance of a class.
In UML, the object is represented by a
rectangle with the object name
underlined.
History 101
Object name
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
History 101 :
CourseOffering
Object name and
class name
15
: CourseOffering
Class name only

16.

Messages
A message is the communication between
two objects that triggers an event.
In the UML, an object
message is represented
by a labeled arrow in a
sequence diagram.
Message
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
16

17.

Lifelines
A lifeline represents the existence of the
object at a particular time.
In the UML, an object symbol is drawn at
the top of the lifeline.
Lifeline
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
17

18.

Focus of Control
A focus of control shows the period of time
during which an object is performing an
action, either directly or through a
subordinate procedure.
In the UML, focus of control
is represented by a tall,
thin rectangle.
Focus of Control
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
18

19. Where Are We?

Classes
Interaction diagrams
Elements of a sequence diagram
Elements of a collaboration diagram
Reports
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
19

20.

What Are Collaboration Diagrams?
A collaboration diagram emphasizes the
organization of the objects that participate
in an interaction.
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
20

21.

What Are Collaboration Diagrams?
A collaboration diagram is made up of the
following basic elements
Actors
Objects
Links
Messages
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
21

22.

Links
A link is a pathway for communication
between objects on a collaboration
diagram.
In the UML, an object link is represented by
a solid line between two objects.
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
22

23.

Messages
A message is the communication between
two objects that triggers an event.
In the UML, an object message is
represented by a labeled arrow above the
link in a collaboration diagram.
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
23

24. Where Are We?

Classes
Interaction diagrams
Elements of a collaboration diagram
Elements of a sequence diagram
Reports
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
24

25. Show Unresolved Objects

The Show Unresolved Objects report lists
all unresolved objects in a collaboration or
sequence diagram.
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
25

26. Show Unresolved Messages

The Show Unresolved Messages report
lists all unresolved messages in a
collaboration or sequence diagram.
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
26

27. Review

1.
2.
3.
4.
What are classes?
Define two characteristics of a class.
What are interaction diagrams?
Name the two types of interaction
diagrams.
5. Name two elements of a
sequence diagram.
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
27
English     Русский Правила