Behavior : Sequence Diagrams - Practical Sequence Diagrams

4 important questions on Behavior : Sequence Diagrams - Practical Sequence Diagrams

The complete Sequence Diagram specification is much more powerful. It includes a robust set of ....?

  • control structures: the equivalent to optionality
  • if-then-else
  • alt
  • loop
  • if
  • break
  • parallel spawn
  • critical regions
  • and support for behavior and structural composition.
Report

Even without the additional control constructs, the Sequence Diagram can illustrate  , what ?

Even without the additional control constructs, the Sequence Diagram can illustrate how a behavioral scenario works with specific argument values supplied for the formal parameters.
Report

What can we read this diagram?

In Fig. 14.12, we see a simplified version of the Borrowing a Book scenario.

For some of the formal parameters, we supplied specific argument values for the scenario.

Here we see the Patron Chonoles showing his LibraryCard and then borrowing the Mark Twain Book.

A dueDate is calculated, and a borrowing record is created.

Then the LibraryCard, the Book, and the dueDate are all handed back to the Patron.
Report

How many occurences do you see in this diagram?


Every execution (vertical rectangles) has a start and end occurrence.

There are three executions -> 3*2 = 6 (de grijze balkjes)

Every message (or function call) also has 2 occurrences:  send and receive occurrence.

We count 4 calls, each with a send and return -> 4 * 2 = 8 (de message pijlen)


Summing up: 6+8 = 14
Report

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo
  • Higher grades + faster learning
  • Never study anything twice
  • 100% sure, 100% understanding
Discover Study Smart