1 / 0

Sequence diagram example

Sequence diagram example. T120B029 P7 2012 pavasaris. What is the purpose of sequence diagram ?. The sequence diagram is used primarily to show the interactions between objects in the sequential order that those interactions occur.

teness
Télécharger la présentation

Sequence diagram example

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Sequence diagram example

    T120B029 P7 2012 pavasaris
  2. What is the purpose of sequence diagram ? The sequence diagram is used primarily to show the interactions between objects in the sequential order that those interactions occur. Developers think sequence diagrams were meant exclusively for them :-) Business staff can find sequence diagrams useful to communicate how the business currently works by showing how various business objects interact. A business-level sequence diagram can be used as a requirements document. During the requirements phase use cases are often refined into one or more sequence diagrams.
  3. Sequence vs. Activity? Little bit later…
  4. Notation 1/ An empty frame Lifeline
  5. Notation 2 Sending a message/methos to another object The name is placed above the arrowed line And represents an operation/method that the receiving object's class implements.
  6. Notation 3 Return messages – optional The use of return messages depends on the level of detail/abstraction Return value is placed above dotted line
  7. Notation 4 Sending a message to itself the model draws attention to the fact that this processing takes place in the system object.
  8. Notation 5 Asynchronous message
  9. Notation 6 Who will guard the guardians themselves? Who will guard the guardians themselves
  10. Combined fragments (alternatives, options, and loops) A combined fragment is used to group sets of messages together to show conditional flow in a sequence diagram. Alternatives - classic "if then else" logic Options - a simple "if then" without “else” Loops – a repetitive sequence
  11. Alternatives mutually exclusive choice between messages
  12. Option used to model a sequence that, given a certain condition, will occur; otherwise, the sequence does not occur.
  13. Loops does not require guard condition be placed on it a guard can have two special conditions Minint = 1, Maxint = 5
  14. Breaks most commonly used to model exception handling cause the exiting of an enclosing interaction's sequence. In cases where a break is part of combinedfragment, then only thatfragmentis exited.
  15. Nested diagrams Referencing another sequence diagram
  16. Sequence(SD) vs. activity (AD)? AD mainly represent process flows. SD mainly represent step by step ordered in time interaction between different objects. AD also repersents an object role in workflow but level of repersenation is not dynamic like SD. Example: Object lifeline and detailed sequence of interaction
  17. Online bookshop example
  18. Facebook user authentication in a Web application
  19. Submit comments (AJAX)
More Related