introduction to the sequence diagrams with stereotypes department of information systems and...
Post on 21-Dec-2015
216 views
TRANSCRIPT
![Page 1: Introduction to the Sequence Diagrams with stereotypes Department of Information Systems and Computation (DSIC) Valencia Polytechnic University](https://reader036.vdocuments.net/reader036/viewer/2022062714/56649d565503460f94a3519e/html5/thumbnails/1.jpg)
Introduction to the Sequence Diagrams
with stereotypes
Department of Information Systems and Computation (DSIC)
Valencia Polytechnic University
![Page 2: Introduction to the Sequence Diagrams with stereotypes Department of Information Systems and Computation (DSIC) Valencia Polytechnic University](https://reader036.vdocuments.net/reader036/viewer/2022062714/56649d565503460f94a3519e/html5/thumbnails/2.jpg)
2
Requirements Analysis ProcessSequence Diagram A Use Case functionality is specified identifying interacting classes
and messages that they interchange
Structure and Notation
![Page 3: Introduction to the Sequence Diagrams with stereotypes Department of Information Systems and Computation (DSIC) Valencia Polytechnic University](https://reader036.vdocuments.net/reader036/viewer/2022062714/56649d565503460f94a3519e/html5/thumbnails/3.jpg)
3
Requirements Analysis ProcessSequence Diagram
Blocks: they are used to specify conditions or iterations that affect to one or many messages
NOT ALL the messages are of the same nature…
An UML extension is introduced (stereotypes) to classify messages according to its nature: «signal» , «service» , «query» , «connect»
![Page 4: Introduction to the Sequence Diagrams with stereotypes Department of Information Systems and Computation (DSIC) Valencia Polytechnic University](https://reader036.vdocuments.net/reader036/viewer/2022062714/56649d565503460f94a3519e/html5/thumbnails/4.jpg)
4
Sequence DiagramStereotypes extension
«Signal» stereotype
![Page 5: Introduction to the Sequence Diagrams with stereotypes Department of Information Systems and Computation (DSIC) Valencia Polytechnic University](https://reader036.vdocuments.net/reader036/viewer/2022062714/56649d565503460f94a3519e/html5/thumbnails/5.jpg)
5
Sequence DiagramStereotypes extension
«Service» stereotype
![Page 6: Introduction to the Sequence Diagrams with stereotypes Department of Information Systems and Computation (DSIC) Valencia Polytechnic University](https://reader036.vdocuments.net/reader036/viewer/2022062714/56649d565503460f94a3519e/html5/thumbnails/6.jpg)
6
Sequence DiagramStereotypes extension
«Query» stereotype
![Page 7: Introduction to the Sequence Diagrams with stereotypes Department of Information Systems and Computation (DSIC) Valencia Polytechnic University](https://reader036.vdocuments.net/reader036/viewer/2022062714/56649d565503460f94a3519e/html5/thumbnails/7.jpg)
7
Sequence DiagramStereotypes extension
«Connect» stereotype
![Page 8: Introduction to the Sequence Diagrams with stereotypes Department of Information Systems and Computation (DSIC) Valencia Polytechnic University](https://reader036.vdocuments.net/reader036/viewer/2022062714/56649d565503460f94a3519e/html5/thumbnails/8.jpg)
8
Sequence DiagramStereotypes extension
«Connect» stereotype example
![Page 9: Introduction to the Sequence Diagrams with stereotypes Department of Information Systems and Computation (DSIC) Valencia Polytechnic University](https://reader036.vdocuments.net/reader036/viewer/2022062714/56649d565503460f94a3519e/html5/thumbnails/9.jpg)
9
An example
2- Functionality is specified identifying object classes and interactions
1- Use Case is identified and its actor(s) specified
Saleitems
Cashier
![Page 10: Introduction to the Sequence Diagrams with stereotypes Department of Information Systems and Computation (DSIC) Valencia Polytechnic University](https://reader036.vdocuments.net/reader036/viewer/2022062714/56649d565503460f94a3519e/html5/thumbnails/10.jpg)
10
RAP – Sequence Diagram (1/8) (Relevant actors are identified)
Saleitems
Cashier
![Page 11: Introduction to the Sequence Diagrams with stereotypes Department of Information Systems and Computation (DSIC) Valencia Polytechnic University](https://reader036.vdocuments.net/reader036/viewer/2022062714/56649d565503460f94a3519e/html5/thumbnails/11.jpg)
11
RAP – Sequence Diagram (2/8) (Messages between actors and the system)
Saleitems
Cashier
![Page 12: Introduction to the Sequence Diagrams with stereotypes Department of Information Systems and Computation (DSIC) Valencia Polytechnic University](https://reader036.vdocuments.net/reader036/viewer/2022062714/56649d565503460f94a3519e/html5/thumbnails/12.jpg)
12
RAP – Sequence Diagram (3/8)(Internal messages, Sale and Sale-line are identified)
![Page 13: Introduction to the Sequence Diagrams with stereotypes Department of Information Systems and Computation (DSIC) Valencia Polytechnic University](https://reader036.vdocuments.net/reader036/viewer/2022062714/56649d565503460f94a3519e/html5/thumbnails/13.jpg)
13
RAP – Sequence Diagram (4/8)(To create a sale-line it’s necessary an item)
until end of linesuntil end of lines
![Page 14: Introduction to the Sequence Diagrams with stereotypes Department of Information Systems and Computation (DSIC) Valencia Polytechnic University](https://reader036.vdocuments.net/reader036/viewer/2022062714/56649d565503460f94a3519e/html5/thumbnails/14.jpg)
14
RAP – Sequence Diagram (5/8)(the cashier finishes the data entry)
until end of linesuntil end of lines
![Page 15: Introduction to the Sequence Diagrams with stereotypes Department of Information Systems and Computation (DSIC) Valencia Polytechnic University](https://reader036.vdocuments.net/reader036/viewer/2022062714/56649d565503460f94a3519e/html5/thumbnails/15.jpg)
15
RAP – Sequence Diagram (6/8)(Subtotal has to be calculated and also the item stock has to be updated)
until end of linesuntil end of lines
![Page 16: Introduction to the Sequence Diagrams with stereotypes Department of Information Systems and Computation (DSIC) Valencia Polytechnic University](https://reader036.vdocuments.net/reader036/viewer/2022062714/56649d565503460f94a3519e/html5/thumbnails/16.jpg)
16
RAP – Sequence Diagram (7/8)(Final information about the sale is shown)
until end of linesuntil end of lines
![Page 17: Introduction to the Sequence Diagrams with stereotypes Department of Information Systems and Computation (DSIC) Valencia Polytechnic University](https://reader036.vdocuments.net/reader036/viewer/2022062714/56649d565503460f94a3519e/html5/thumbnails/17.jpg)
17
RAP – Sequence Diagram (8/8)(Messages are stereotyped)
<<signal>><<signal>>
<<signal>><<signal>>
<<service/new>><<service/new>>
<<service/new>><<service/new>>
<<connect/1,1>><<connect/1,1>>
<<query>><<query>>
<<query>><<query>>
<<service>><<service>>
<<signal>><<signal>>
<<signal>><<signal>>
until end of linesuntil end of lines
![Page 18: Introduction to the Sequence Diagrams with stereotypes Department of Information Systems and Computation (DSIC) Valencia Polytechnic University](https://reader036.vdocuments.net/reader036/viewer/2022062714/56649d565503460f94a3519e/html5/thumbnails/18.jpg)
18
Summary Sequence Diagrams (SD) are used to specify functionality in terms of
object interactions (they are not algorithm specifications!) Objects from classes communicate each other by sending messages
A SD is structured in three regions: External: actors outside of the system – users Interface: user interface (boundary class) to receive information from
actors or to show information produced by the system Internal: classes in which the system is structured
Depending on the nature of messages they are classified in: Signal: messages to get information into the system or to show
information from the system Service: messages that change the state of the system (create, destroy,
update) Query: messages to query the state of an object or a set of objects Connect: messages that relates objects to each other (when an object
needs to be “connected” to other objects)