Page 73 - DCAP308_OBJECT_ORIENTED_ANALYSIS_AND_DESIGN
P. 73
Unit 6: State Modelling
Notes
!
Caution It is possible to define any number of actions of each type.
Self-transitions: A state can have a transition that returns to itself as shown in the Figure 6.6.
This is the most useful when an effect is associated with the transition.
Figure 6.6: Self-transition
Source: http://www.ddegjust.ac.in/studymaterial/mca-5/mca-503.pdf
Compound States: Substates may be nested to any level.
Example: In figure 6.7, we have shown that a state machine diagram may include
sub-machine diagrams.
Figure 6.7: Compound States
Source: http://www.ddegjust.ac.in/studymaterial/mca-5/mca-503.pdf
There is also an alternative way of showing the same information.
LOVELY PROFESSIONAL UNIVERSITY 67