01.02.2013 Views

Software Development Cross Solution - Index of - Free

Software Development Cross Solution - Index of - Free

Software Development Cross Solution - Index of - Free

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.

sequence diagrams<br />

#2. Sequence diagrams<br />

A static class diagram only goes so far. It shows you the classes that make up<br />

your s<strong>of</strong>tware, but it doesn’t show how those classes work together. For that,<br />

you need a UML sequence diagram. A sequence diagram is just what it<br />

sounds like: a visual way to show the order <strong>of</strong> events that happen, such as<br />

invoking methods on classes, between the different parts <strong>of</strong> your s<strong>of</strong>tware.<br />

This is the actor this<br />

sequence is started by.<br />

436 Appendix i<br />

These are the messages being<br />

sent from object to object<br />

in the sequence.<br />

These messages are actually<br />

method invocations.<br />

Sometimes an object<br />

calls a method on<br />

itself. In that case,<br />

the message originates<br />

from, and is directed<br />

to, the same object.<br />

Boxes represent objects<br />

in the s<strong>of</strong>tware that take<br />

part in the interaction.<br />

new FirstDate() FirstDate<br />

goToRestaurant(date : Date, address : Address)<br />

validateEvent(event : Event) :boolean<br />

seeMovie(date : Date, address : Address)<br />

validateEvent(event : Event) :boolean<br />

goOnDate()<br />

Download at WoweBook.Com

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

Saved successfully!

Ooh no, something went wrong!