AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Sequence diagram if loop3/14/2024 Here are some common terms and symbols you’ll come across in an interaction diagram: The attributes of a lifeline are as follows: Lifeline: A lifeline depicts a single participant in a given interaction, describing how an instance of a specific classifier participates in an interaction.Name: Used to refer to the lifeline in a specific interaction.Type: Names the classifier of which the lifeline represents an instance.Selector: Used as a Boolean condition to select a particular instance that satisfies the requirement.Message: A message is a specific type of communication between two lifelines in an interaction. It can be used to call an operation, create or destroy an instance, or send a signal. As lifelines receive and interact with messages, it creates a focus of control that moves from lifeline to lifeline. The messages used within an interaction diagram are as follows: This is referred to as a flow of control.Synchronous message: The message sender keeps waiting for the receiver to return control from the message execution.Asynchronous message: The message sender continues the execution of the next message without waiting for a return from the message receiver.Return message: The receiver of a previous message returns the focus of control to the sender.Object creation: The message sender creates an instance of a classifier.Object destruction: The message sender destroys the created instance.Found message: The message sender is outside the scope of interaction.Lost message: The message is lost in the interaction and never reaches the destination.Operator: An operator specifies how the operands will be executed within an operation. The various operators within an interaction diagram are as follows: In UML, an operator supports operations on data in the form of branching and iterations.Opt (option): An operand is executed if the condition is true.Alt (alternative): An operand, whose condition is true, is executed.Loop (loop): This operator loops an instruction for a specific time period. Break (break): If the condition is true or false, the loop is broken, and the next instruction is executed.Ref (reference): This operator refers to another interaction.Par (parallel): All operands are executed in parallel with one another.īranching: These are some of the most crucial terms in an interaction diagram.To represent branching within an interaction diagram, guard conditions are added to individual messages. These guard conditions are used to verify if a message can be sent forward or not. Only if a message’s guard conditions are true can it be sent forward. A message can have multiple guard conditions, and multiple messages can carry the same guard conditions.
0 Comments
Read More
Leave a Reply. |