Sequence diagrams Flashcards
(12 cards)
What are sequence diagrams?
Sequence diagrams visually represent the interactions between objects or components in a system over time in chronological order
What are sequence diagrams used for?
- Represent and analyse use cases
- Provide an intuitive way to convey behaviour
- Reflect visually dynamic behaviour
What are actors?
A type of role where it interacts with the system and its objects. Always out of scope of the system we aim to model.
What are lifelines?
Named element that depicts an individual participants in a sequence diagram. Each instance in a sequence diagram is represented by a lifeline
What are messages?
Communication between objects.
What are reply messages?
- Reply messages are represented with a dotted line
- Show messages being sent from the receiver to the sender.
What are found messages?
Messages sent where we do not know the source of the message. Represented with a dot and and an arrow out of it to the lifeline.
What are lost messages?
Lost messages represent messages to where the receiver is not known by the system. Represnted by O—>
What are guards?
Guard conditions are used when we need to restrict the flow of messages on the pretext of a condition being met.
What is alt?
Alternative operators or alt represents an if-then-else statement in a sequence diagram. Only runs with guard condition tests true.
What is opt?
Optional operator or opts, represents the logic of a standard if statement, if the guard conditional is failed then it is ignored.
What is a loop?
Loop operator, indicates the section that will run repeatedly the number of times it runs is determined by the minint and maxint params of the operator