Rice University - Comp 212 - Intermediate Programming

Fall 2003

Lecture #21 -  UML Sequence Diagram; Design Patterns for Lazy Evaluation


Today's Menu

  1. UML Sequence Diagram

  2. Design Patterns for Lazy Evaluation


1. UML Sequence Diagram

The UML class diagrams for the design of Hangman can only describe the static relationships between the various classes.  To illustrate the dynamic interactions between the various objects in the system at runtime, we use UML sequence diagrams.  Below are UML sequence diagrams depicting different scenarios in playing the game.

a. Correctly guess a character but still need to continue playing

b. Correctly guess a character and win

c. Incorrectly guess a character but still need to continue playing

d. Painting the body parts

 

e. The game is lost when the noose is drawn 

2. Design Patterns For Lazy Evaluation

Demo: lazyeval.jar (executable jar file, Main-Class: demo/Application1)

PowerPoint presentation: LazyEval.zip (4.2 MB file! With working demos and sub-presentations. Includes lazyeval.jar. For Windows only--sorry)

On-line PowerPoint presentation (does not have working hyperlinks for demos or sub-presentations) and SIGCSE paper: http://www.exciton.cs.rice.edu/research/SIGCSE00/

 


dxnguyen@cs.rice.edu
Copyright 2003, Dung X. Nguyen - All rights reserved.