20.02.2013 Views

Connie's Convenience Store - About Peter Coad

Connie's Convenience Store - About Peter Coad

Connie's Convenience Store - About Peter Coad

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.

Scenario: get payment by check<br />

Receipt<br />

Sale<br />

AuthorizationSystem<br />

Check<br />

SaleWindow<br />

Scenario constraint:<br />

0.1 seconds, 9 out of 10 times,<br />

0.5 seconds max.<br />

addPaymentLines<br />

addPayment<br />

getAuthorization<br />

create<br />

authorize<br />

payByCheck<br />

display<br />

saleWindow.payByCheck<br />

Check.create(number,bankRoutingNumber,amt;<br />

checkPayment)<br />

check,authorize (; result)<br />

authorizationSys.authorizeCheck(check ; result)<br />

payByCheck<br />

create<br />

authorize<br />

getAuthorization<br />

// got authorization<br />

sale.addPayment (check ; )<br />

saleWindow.display<br />

receipt.addPaymentLines (check ; )<br />

IF<br />

addPayment<br />

display<br />

addPaymentLines<br />

ENDIF<br />

Figure 1–54: The “get payment by check” scenario view.<br />

79

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

Saved successfully!

Ooh no, something went wrong!