11.10.2013 Views

Slides Part 2 (OOA, pages 1-128, pdf, 4 slides per page)

Slides Part 2 (OOA, pages 1-128, pdf, 4 slides per page)

Slides Part 2 (OOA, pages 1-128, pdf, 4 slides per page)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SIMPLE SCENARIOS: NORMAL CASE 2 AND EXCEPTIONAL CASE 3<br />

Scenario for normal case 2:<br />

sd OpenAcccountN2<br />

sd OpenAcccountE3<br />

: Bank<br />

BankClerk BankClerk<br />

account_opened<br />

Szenario for exceptional case 3:<br />

open_known_customer_accout open_known_customer_accout<br />

ignore to define messages to be ignored in the execu<br />

loop repetition<br />

neg to define forbidden behavior<br />

53<br />

account_not_opened<br />

par parallel independent execution of several o<strong>per</strong>ands tion<br />

seq weak sequencing (default)<br />

strict strict sequencing<br />

We will only use alt and opt.<br />

Moreover: ref: Reference to another sequence diagram.<br />

Avoids repetitions; semantics: replace reference by its contents.<br />

55<br />

: Bank<br />

COMBINED FRAGMENTS<br />

O<strong>per</strong>ators for combining different sequence diagrams. The following o<strong>per</strong>ators<br />

are defined:<br />

alt alternatives; more than two alternatives are possible.<br />

opt option<br />

assert assertion, to define a message sequence that must occur<br />

break description of behavior expected after a break<br />

coregion messages can be received in any order<br />

consider to define messages to be considered in the execution; equivalent to<br />

defining every other message to be ignored<br />

critical critical region<br />

PATTERN FOR MODELING “”<br />

sd UC1_i<br />

54<br />

<br />

UC1 UC2<br />

:X :Y<br />

ref<br />

M1<br />

M2<br />

M3<br />

M4<br />

UC2<br />

56

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!