Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
roth_stephan_clean_c20_sustainable_software_development_patt.pdf
Скачиваний:
29
Добавлен:
27.03.2023
Размер:
7.26 Mб
Скачать

Appendix A Small UML Guide

Table A-3.  Other Frequently Used Activity Nodes

Notation

Name of the Element and its Semantic

 

 

 

Initial node Represents the point at which flow starts when the activity is invoked.

 

An activity may contain more than one initial node; in this case invoking the activity

 

will start multiple flows simultaneously.

 

Activity final node This kind of node stops all flows in an activity. An activity may

 

contain more than one activity final node; in this case the first one reached stops all

 

flows and terminates the whole activity.

 

Decision node This kind of node has one incoming edge and selects one outgoing

 

edge from two or more possible outgoing flows. So-called guards (see the section

 

called “Control Flow Edge”) are typically used to select the outgoing edge.

 

Merge node This kind of node brings together multiple incoming alternate flows and

 

has one single outgoing flow.

 

Fork node This kind of node has one incoming edge and multiple outgoing edges

 

and is used to split an incoming flow into multiple concurrent (parallel) flows.

 

Join node This kind of node has multiple incoming edges and one outgoing edge

 

and is used to synchronize incoming concurrent (parallel) flows.

Sequence Diagram

Unlike the previously discussed activity diagrams, a sequence diagram depicts the interaction of, or communication between, elements of the modeled system in a specific, limited situation. They thus represent a different view of the behavior of the modeled system.

The sequence diagram in Figure A-17 depicts the sequence of interactions, that is, the ordered exchange of messages between all software modules involved in creating a new posting in an account.

469

Appendix A Small UML Guide

Figure A-17.  The interaction of elements when creating a new account posting

Lifeline

The central element in sequence diagrams is the so-called lifeline.

LIFELINE

A lifeline represents an individual participant in an interaction.

The syntax (notation) of a lifeline, as depicted in Figure A-18, is a symbol that consists of a rectangle forming its “head” followed by a vertical dashed line that represents the lifetime of the participant. The head of the lifeline contains the information about the participant in the format elementName : elementType, whereby the elementName is optional.

Figure A-18.  A lifeline representing the element a of type Type A

470