Page 107 - DCAP308_OBJECT_ORIENTED_ANALYSIS_AND_DESIGN
P. 107

Unit 8: Advanced Interaction Modelling




          8.2.2  Sequence Diagrams with Transient Objects                                       Notes

          ObjectA is an active object that initiates an operation. The notation for a call is an arrow from the
          calling activation created by the call. Activation, therefore, has a call arrow coming into its top
          and a return arrow leaving its bottom. If an object does not exist at the beginning of a sequence
          diagram, then it must be created during the sequence diagram.

               !

             Caution The UML shows creation by placing the object symbol at the head of the arrow for
            the call that creates the object.
          Conditionals on a sequence diagram also can be shown.

                           Figure 8.6: Sequence Diagram with a  Transient  Object




























          Source:http://elearning.vtu.ac.in/13/ENotes/OOAD/Object%20Oriented%20Modeling%20and%20
          Design%20Patterns-%20Lecture%20%20%20Notes-Dr.pdf

          8.2.3  Guidelines for Procedural Sequence Models

               Active vs. passive objects.
          By definition, active objects are always activated and have their own focus of control.

               Advanced features.
          Only show implementation details for difficult or especially important sequence diagrams.




              Task       Compare and contrast passive objects and active objects.











                                           LOVELY PROFESSIONAL UNIVERSITY                                   101
   102   103   104   105   106   107   108   109   110   111   112