What type of UML diagram is a Sequence Diagram?
It is a behavioral UML diagram
What does a Sequence Diagram primarily show?
How objects interact and the order of messages exchanged
What dimension does the vertical axis represent?
Time (progressing down the page)
What dimension does the horizontal axis represent?
The objects involved in the interaction.
What are the other term for User?
Actor
What does other layer called? ( Interface, Application, Database )
Object
How is an Actor (e.g., User) represented?
By a stick figure
How is an Object represented?
By a rectangle (box) with a name inside
What three key questions does a Sequence Diagram answer?
Does a Sequence Diagram focus on structure or process?
It focuses on the process flow over time.
What is a ‘Lifeline’?
A vertical dashed line showing an object’s existence over time.
User ATM Machine (Interface) | | | | | | | |
What is line for sending request to objects?
Solid line with arrow
\_\_\_\_\_\_\_\_\_\_\_>
Write the function from class diagram with parameter to get full marks
What is the line for reply of the request?
Dotted line with arrow
~~~
——>
~~~
How to show alternative flow
Draw a rectangle with the text “Alt” at top left
IF card valid - Request Pin IF card invalid - Eject Card
What will the Alt rectangle become in programming?
If else statement
How to divide the alternative flows in the rectangle?
A solid or dotted line
What does the length of the status bar indicates?
It indicates the duration of the object’s existence over time.
Known as Status Line / Active Line (Green Bar at Slide)
A rectangle bar that is connected to the lifeline
What does the X mean at the ATM machine lifeline below?
The ATM machine shut down
In the ATM example, what is the first action?
insertCard(card_number)
In the ATM example, which component validates the card?
The Bank Server (Application)
In the ATM example, what happens if the card is invalid?
The machine performs Eject_card(card)
In the ATM example, which layer does the ATM Machine belong to?
The Interface (UI) Layer.
In the ATM example, which layer does the Database Server belong to?
The Data Layer.
What parameter is passed with the ‘requestPIN’ message?
The ‘pin’