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>One Interaction Diagram Is Not Good EnoughOne Interaction Diagram Is Not Good EnoughBasic FlowAlternate Flow 1 Alternate Flow 2 Alternate Flow 3AF3AF1AF2Alternate Flow 4 Alternate Flow 5 Alternate Flow n<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 34Model most of the flow of events to make sure that all requirements on theoperations of the participating classes are identified. Start <strong>with</strong> describing the basicflow, which is the most common or most important flow of events. Then describevariants such as exceptional flows. You do not have to describe all the flow of events,as long as you employ <strong>and</strong> exemplify all operations of the participating objects. Verytrivial flows can be omitted, such as those that concern only one object.Examples of exceptional flows include the following:• Error h<strong>and</strong>ling. What should the system do if an error is encountered?• Time-out h<strong>and</strong>ling. If the user does not reply <strong>with</strong>in a certain period, the use caseshould take some special measures.• H<strong>and</strong>ling of erroneous input to the objects that participate in the use case (forexample, incorrect user input).Examples of optional flows include the following:• The actor decides-from a number of options — what the system is to do next.• The subsequent flow of events depends on the value of stored attributes orrelationships.• The subsequent flow of events depends on the type of data to be processed.You can use either Collaboration or Sequence diagrams.6 - 34

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

Saved successfully!

Ooh no, something went wrong!