Page 76 - DCAP308_OBJECT_ORIENTED_ANALYSIS_AND_DESIGN
P. 76

Object Oriented Analysis and Design




                    Notes          Junction Pseudo-State: Junction pseudo-states are used to chain together multiple transitions. A
                                   single junction can have one or more incoming, and one or more outgoing, transitions; a guard
                                   can be applied to each transition. Junctions are semantic-free.



                                     Did u know? A junction, which splits an incoming transition into multiple outgoing
                                     transitions realizes a static conditional branch, as opposed to a choice pseudo-state which
                                     realizes a dynamic conditional branch.


                                          Example: Junction pseudo-states is shown in Figure 6.12.
                                                           Figure 6.12: Junction  Pseudo-states



























                                   Source: http://www.ddegjust.ac.in/studymaterial/mca-5/mca-503.pdf

                                   Terminate Pseudo-State: Entering a terminate pseudo-state indicates that the lifeline of the state
                                   machine has ended. A terminate pseudo-state is denoted as a cross as shown in Figure 6.13.

                                                           Figure 6.13: Terminate  Pseudo-state










                                   Source:  http://www.ddegjust.ac.in/studymaterial/mca-5/mca-503.pdf
                                   History States: A history state is used to remember the previous state of a state machine when
                                   it was interrupted.

                                          Example: The diagram shown in Figure 6.14 illustrates the use of history states. The
                                   example is a state machine belonging to a washing machine. In this state machine, when a
                                   washing machine is running, it will progress from “Washing” through “Rinsing” to “Spinning”.





          70                                LOVELY PROFESSIONAL UNIVERSITY
   71   72   73   74   75   76   77   78   79   80   81