It allows you to reuse part of one sequence diagram in another, or in other words, you can reference part of a diagram in another diagram using the ref fragment. You can use the ref fragment to manage the size of large sequence diagrams. (Find an example of a loop fragment below in the sequence diagram templates and example section) If it is a minimum iterations guard, the loop must execute not less than the number mentioned, and if it is a maximum iterations guard, the loop mustn’t execute more than the number indicated. These are minimum iterations (written as minint = and maximum iterations (written as maxint = ). In addition to the Boolean test, the guard in a loop fragment can have two other special conditions tested against. Place the words ‘loop’ in the name box and the guard condition near the top left corner of the frame. Loop fragment is used to represent a repetitive sequence. (Find an example sequence diagram with an option fragment in the Sequence Diagram Templates and Examples section). Option’s guard is placed at the top left corner. Unlike the alternative fragment, an option fragment is not divided into two or more operands. Similar to the alternative fragment, the option fragment is also represented with a rectangular frame where ‘opt’ is placed inside the name box. The option combination fragment is used to indicate a sequence that will only occur under a certain condition, otherwise, the sequence won’t occur. Each operand has a guard to test against and it is placed at the top left corner of the operand. To show two or more alternatives, the larger rectangle is then divided into what is called interaction operands using a dashed line, as shown in the sequence diagram example above. The alternative fragment is represented by a large rectangle or a frame it is specified by mentioning ‘alt’ inside the frame’s name box (a.k.a. The alternative combination fragment is used when a choice needs to be made between two or more message sequences. This – the fragment operator – specifies what sort of a fragment it is. On the top left corner of the fragment sits an operator. It is used to show complex interactions such as alternative flows and loops in a more structured way.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |