12.07.2015 Views

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

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

<strong>DEV475</strong> <strong>Mastering</strong> <strong>Object</strong>-<strong>Oriented</strong> <strong>Analysis</strong> <strong>and</strong> <strong>Design</strong> <strong>with</strong> <strong>UML</strong>The Anatomy of Sequence DiagramsThe Anatomy of Sequence DiagramsThis is a sample script.Client <strong>Object</strong>Supplier <strong>Object</strong>:Client:Supplier<strong>Object</strong> Lifeline1: PerformResponsibilityReflexive MessageMessage1.1: PerformAnotherResponsibilityFocus of ControlHierarchical MessageNumbering<strong>Mastering</strong> <strong>Object</strong> <strong>Oriented</strong> <strong>Analysis</strong> <strong>and</strong> <strong>Design</strong> <strong>with</strong> <strong>UML</strong>Copyright © 2003 Rational Software, all rights reserved 30A Sequence diagram describes a pattern of interaction among objects, arranged in achronological order. It shows the objects participating in the interaction <strong>and</strong> themessages they send.An object is shown as a vertical dashed line called the "lifeline." The lifelinerepresents the existence of the object at a particular time. An object symbol is drawnat the head of the lifeline, <strong>and</strong> shows the name of the object <strong>and</strong> its class separatedby a colon <strong>and</strong> underlined.A message is a communication between objects that conveys information <strong>with</strong> theexpectation that activity will result. A message is shown as a horizontal solid arrowfrom the lifeline of one object to the lifeline of another object. For a reflexivemessage, the arrow starts <strong>and</strong> finishes on the same lifeline. The arrow is labeled <strong>with</strong>the name of the message <strong>and</strong> its parameters. The arrow may also be labeled <strong>with</strong> asequence number.Focus of control represents the relative time that the flow of control is focused in anobject, thereby representing the time an object is directing messages. Focus ofcontrol is shown as narrow rectangles on object lifelines.Hierarchical numbering bases all messages on a dependent message. Thedependent message is the message whose focus of control the other messagesoriginate in. For example, message 1.1 depends on message 1.Scripts describe the flow of events textually.6 - 30

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

Saved successfully!

Ooh no, something went wrong!