# These are flashcards an notes made by students on topics like 'diagram', 'book' and 'sequence', originating from:

ISBN-10 0128096403 ISBN-13 9780128096406
1335 Flashcards & Notes
• This + 400k other summaries, also in PDF!
• 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.

## Study Cards on diagram, book, sequence

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.
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.
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.
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