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.

Session 23—Applying the Extended Statechart Features to the Case Study 243<br />

On Order<br />

receive(location)<br />

Inventoried<br />

sell(Order)<br />

Sold<br />

return(location)<br />

pack(Shipment)<br />

Packaged<br />

ship(carrier, date)<br />

Shipped<br />

Figure 23-9 The merged Statechart diagram<br />

This is just one simple technique for taking advantage of the Sequence diagram to help<br />

you build a Statechart. You will very likely encounter a few others. In fact, there are moreformal<br />

methods for mapping the two diagrams in a manner that is supported by software.<br />

Some modeling tools allow you to work on a Statechart and then automatically generate or<br />

update your Sequence diagrams. Likewise, you can create Sequence diagrams and generate<br />

the Statechart.<br />

The Statechart and Sequence diagrams can help you a great deal when you’re trying to<br />

design the behavior of your objects, especially those few objects that are at the heart of<br />

your application.

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

Saved successfully!

Ooh no, something went wrong!