Evaluating guarded booking alternatives

A booking sequence diagram uses the alt fragment shown below. A guard is a condition that determines whether an alternative is eligible to execute. Here, ss is the number of available seats, rr is the number requested, and aa is true when payment is authorised and false otherwise. The values stay unchanged while the guards are evaluated.


A booking sequence diagram contains three guarded alternatives across checkout, inventory and screen lifelines.


For each independent run, enter the selected message name: reserve, requestAuth or reject. Omit parentheses. Each operand contains only the outgoing call shown.

RunAvailable seats sRequested seats rAuthorised aSelected message
A66true
B66false
C25true
D01false
E73false

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Sequence Diagrams Questions: