Reputation: 8732
Scenario:
How to model the first statement using UML (sequence diagram/activity/statemachine) ?
Upvotes: 0
Views: 1146
Reputation: 126
I guess any of these types of diagrams could model the interaction, but I would go with a sequence or a communication diagram for these reasons:
This would be my take on a sequence diagram for the interaction (could possibly include more agents/port listeners to show the multicast):
And on a communication diagram (Agent 0 and Agent 1 could just be called Port Listener 0 and Port Listener 1):
Statement (1), which I take to be the agent listening to the address or port, is shown as a self-call in both cases.
Here are a couple of amusing articles on sequence diagrams:
Upvotes: 3