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

Create successful ePaper yourself

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

inging your design to life with a sequence diagram<br />

The user begins<br />

the process by<br />

creating a new<br />

first date.<br />

Start <strong>of</strong> the<br />

interactions.....<br />

The date<br />

is asked to<br />

set itself<br />

up with two<br />

events...<br />

...time passes<br />

down this line...<br />

...end <strong>of</strong> the<br />

interactions<br />

126 Chapter 4<br />

Task 1: Creating dates<br />

Let’s test out the Date and Event classes by bringing them to life on a sequence diagram.<br />

Finish the sequence diagram by adding the right method names to each interaction between<br />

objects so that you are creating and validating that a first date that has two events, going to a<br />

restaurant and seeing a movie.<br />

The first method calls<br />

are done for you.<br />

Each arrow is a method call<br />

on the different objects<br />

involved in the interaction<br />

A diagram that brings objects<br />

to life, showing how they work<br />

together to make an interaction<br />

happen<br />

new FirstDate() FirstDate<br />

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

Download at WoweBook.Com<br />

The first<br />

date object<br />

A method<br />

invocation on<br />

itself

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

Saved successfully!

Ooh no, something went wrong!