nus-cs2103-AY2324S2 / forum

16 stars 0 forks source link

Activity diagram parallel paths: is it allowed for Fork to be vertical and the Join to be horizontal? #1020

Closed aureliony closed 6 months ago

aureliony commented 6 months ago

So far in all the examples in the textbook and tutorials, fork and join rectangles are either both vertical, or both horizontal. Is it valid for one to be vertical and the other to be horizontal?

Example (sorry for the bad lines): Untitled

damithc commented 6 months ago

@aureliony Yes, each can be vertical or horizontal, independent of the other.

aureliony commented 6 months ago

Just to add on, is it allowed for the rectangles to be diagonal?

And is it allowed for the arrows to be diagonal?

damithc commented 6 months ago

I suppose this likeness of the below, in any orientation, is good enough to show it is a fork/join.

image

aureliony commented 6 months ago

Thank you prof