Without even knowing the notation formally, you can probably get a pretty good idea of what is going on. The example shows a Sequence diagram with three participating objects: Customer, Order, and the Stock. You can show the basis of the iteration within brackets, such as *. Iteration notation represents a message is sent many times to multiple receiver objects, as would happen when you are iterating over a collection. The top and the bottom of the of the rectangle are aligned with the initiation and the completion time respectively Iteration notation To indicate that it takes a certain while before the receiver actually receives a message, a slanted arrow is used.įocus of Control represents the period during which an element is performing an operation. 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.ĭestructor 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. A signal is an asynchronous message that has no reply.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |