The fragment in the sequence diagram are rectangular frames drawn over a portion of the diagram. Various predefined fragment types are available, allowing you to specify alternate results, parallel messages, or loops. Interactive fragments allow you to group related messages in a sequence diagram. The fragment operator (in the upper left corner) indicates the type of the fragment. Combination fragmentsĪ sequence fragment is represented as a box called a combined fragment, which encloses a part of the interaction in the sequence graph. To indicate that it takes a certain while before the receiver actually receives a message, a slanted arrow is used. The messages are drawn as a horizontal arrow. Messages are often considered to be instantaneous, thus, the time it takes to arrive at the receiver is negligible. Only when a target’s destruction is set to ‘after destructor’ do you have to use a destructor. There are other ways to indicate that a target is destroyed during an interaction. Targets that are created during the interaction by a constructor call are automatically placed further down the diagram.Ī destructor message destroys its receiver. The sender that already exist at the start of the interaction are placed at the top of the diagram. Participants can be created and destroyed according to the messages that are being passed.Ī constructor message creates its receiver. Participants do not necessarily live for the entire duration of a sequence diagram’s interaction.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |