01.01.2015 Views

UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

224<br />

Sunday Morning<br />

On Order<br />

entry:setPO(PO)<br />

receive/<br />

PO.receiveProduct(Product, qty)<br />

Inventoried<br />

entry:inventory(location)<br />

sell/<br />

setOrder(Order)<br />

Sold<br />

pack for shipping/<br />

setShipment(Shipment)<br />

return<br />

Packaged<br />

ship/<br />

setShipped(date, carrier)<br />

Shipped<br />

Figure 21-10<br />

The completed Statechart diagram for the Product object<br />

REVIEW<br />

The Statechart allows many events to transition to the same state. Each event may trigger<br />

an action. When all the actions associated with the transitions into a state are the same,<br />

you can model them as a single entry action. Place the entry action description in the internal<br />

transitions compartment of the state.

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

Saved successfully!

Ooh no, something went wrong!