-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If-else return statements in sequence diagrams #191
Comments
Both are fine if the return is same. If the return value is different for the different alternatives, it needs to be the first one.
It follows the meaning of the diagram. In the second case, the return is not part of the alternative branches in which case it should be outside of the alt box. As we put the return outside the box, the activation bar too has to extend to outside of the box. |
May I ask how should we deal with the parameters of |
For context, can give a screenshot? |
Should be |
Thank you Prof! |
In the lecture going through the sequence diagram past year question, the sequence diagram was drawn to have one return arrow in each of the if and else parts of an "alt" block. However, for Q2 of the mock practice paper, only one return arrow was drawn outside the alt block. Both had return statements in each of the "if" and "else" parts. Which convention should we follow?
Also, the second picture has an activation bar not exceeding the alt block while the bar exceeds the alt block in the first picture. Which one do we follow?
The text was updated successfully, but these errors were encountered: