Hi all, I would like to ask about performing component-to-component connection in a sequence diagram.
- component_A has an interface with A_slot() method
- component_B has an interface with B_slot() and B_signal() methods
Connecting slots is easy: just drag from component_A to component_B, select “message” in the appearing pop-up, component_B method list will appear (since component_B is the receiver), choose the B_slot() method.
Same to connect from component_B to component_A, where component_B invokes the A_slot() component_A method, since component_A is the receiver
So far, so good, 100% clear.
My question is: how to deal with signals? In my example B_signal() belongs to component_B interface and, as a signal, it “emits” data (the red arrow) to whatever component was registered to receive such signalling.
How can I represent it in a VP sequence diagram? The data flow is truly from component_B to component_A, so I would like to see an arrow pointing to the left, like the red one in the picture.
But how can I choose among the list of component_B methods, if I am dragging from component_B to component_A?
Note that dragging from component_A to component_B is not suitable, since component_A doesn’t truly perform any call to component_B: component_A is just informed about incoming signal from component_B