lecture14 - UMLSequenceDiagrams 1 CSE335Dr.CharlesB.Owen

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 1 UML Sequence Diagrams
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 2 A Cat Story An evil man kicked a cat. The cat was none  too happy and reported the man to the  ASPCA. They got really angry and reported  the man to the police, who promptly  arrested the man.  What are my objects here? What are the operations? How can we model this  sequence of events?
Background image of page 2
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 3 Scenarios Man kicks cat. Cat reports man to ASPCA. ASPCA reports man to police. Police arrest man. scenario  is a  sequence of events  during one possible  execution  of a system.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 4 Scenarios Man kicks cat. Cat reports man to ASPCA. ASPCA reports man to police. Police arrest man. We see messages (read as  function  calls ) between objects and activities  performed by objects in scenarios.  This is often the first place we start, but it  is not precise as to the exact sequence  of events when things start to overlap.
Background image of page 4
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 5 Scenario Example You must move the corn, goose, and fox across the  river. Your boat can carry exactly one of them at a time.  If you leave the corn and goose on the same side at the  same time, the goose will eat the corn. If you leave the  fox and the goose alone on the same side the fox will  eat the goose.  1
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 6 UML Sequence diagrams
Background image of page 6
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 7 UML Sequence diagrams Time Participant Lifeline Message Activation Return Message Simultaneous Activations
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 8 Sequence diagrams Capture the timing and  sequences of interactions  between and within classes
Background image of page 8
CSE 335 Dr. Charles B. Owen Object-Oriented Programming
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/12/2010 for the course CSE CSE 335 taught by Professor Owen during the Fall '10 term at Michigan State University.

Page1 / 34

lecture14 - UMLSequenceDiagrams 1 CSE335Dr.CharlesB.Owen

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online