Sams Teach Yourself C++ in 21 Days

(singke) #1
Object-Oriented Analysis and Design 365

Super States The customer can change her mind at any time and decide not to log in.^11
She can do this after she swipes her card to identify her account or after she enters her
password. In either case, the system must accept her request to cancel and return to the
“not logged in state” (see Figure 11.24).

FIGURE11.23
Customer account
state.


Getting Account Info

Getting Password

Not Logged In

Logged In

Solid bullet = start

State transition

State

Guard

Bullseye = end

[Valid Account ID]

Start

FIGURE11.24
User can cancel.


Getting Account Info

Getting Password

Not Logged In

Logged In

Start

Canceled

Canceled
Free download pdf