Sequence diagram:
A sequence diagram is a type of UML (Unified Modeling Language) diagram that illustrates how objects interact with each other in a system. It describes the flow of messages or interactions between different objects over time. Here are some key terms and symbols used in a sequence diagram.
![](https://i0.wp.com/easyexamnotes.com/storage/2024/02/sequence-diagram-1.jpg?resize=1024%2C573&ssl=1)
Various terms and symbols used in sequence diagram :
- Class Roles or Participants: Objects in the system are represented as class roles or participants. They describe how an object behaves in a particular context.
![](https://i0.wp.com/easyexamnotes.com/storage/2024/02/object.jpg?resize=1024%2C456&ssl=1)
- Activation or Execution Occurrence: Activation occurrences represent the time an object is busy executing a task. It is depicted as a thin gray rectangle placed vertically on the object’s lifeline.
![](https://i0.wp.com/easyexamnotes.com/storage/2024/02/activation.jpg?resize=1024%2C715&ssl=1)
- Messages: Arrows represent messages exchanged between objects. Asynchronous messages are shown with half-arrowed lines, indicating that the sender does not wait for a response before continuing its tasks. Synchronous messages are represented with full arrows.
![](https://i0.wp.com/easyexamnotes.com/storage/2024/02/synchronous-message-1.jpg?resize=1024%2C448&ssl=1)
![](https://i0.wp.com/easyexamnotes.com/storage/2024/02/synchro.jpg?resize=1024%2C522&ssl=1)
- Lifelines: Vertical dashed lines indicating the object’s presence over time.
![](https://i0.wp.com/easyexamnotes.com/storage/2024/02/lifeline.jpg?resize=791%2C1024&ssl=1)
- Destroying Objects: Objects can be terminated early using an arrow labeled “<< destroy >>” pointing to an X, denoting object destruction.
- Loops: A repetition or loop within a sequence diagram is depicted as a rectangle with the exit condition placed at the bottom left corner.
Asynchronous Messages:
- An asynchronous message is represented by a half arrowhead on the arrow.
- In the example, a real-time system authorizes personnel to pass through electronically controlled doors using asynchronous messages.
![](https://i0.wp.com/easyexamnotes.com/storage/2024/02/three-parellel-queus.jpg?resize=1024%2C357&ssl=1)
Asynchronous Messages with Priority:
![](https://i0.wp.com/easyexamnotes.com/storage/2024/02/trasmit-msg.jpg?resize=1024%2C380&ssl=1)
- Messages may arrive faster than the target can process them, so they are placed in a queue with different priority levels.
- The priority level is indicated in the message properties.
![](https://i0.wp.com/easyexamnotes.com/storage/2024/02/collaboration-diagram.jpg?resize=1024%2C354&ssl=1)
Broadcast Messages:
- A broadcast message treats every object as a potential target, and a copy goes into the queue of every object in the system.
- Example: A startup sequencer broadcasts a message to every object in the system to load itself.
![](https://i0.wp.com/easyexamnotes.com/storage/2024/02/bordcast-msg.jpg?resize=1024%2C299&ssl=1)