This is something that shouldn't be hard to find, but I searched for hours and couldn't find a definitive answer.
Following problem:
We have two classes. An active class "sensor" and a "device".
When the sensor detects something, it should inform the device about it. All of this must be defined in a class diagram.
My idea was that the sensor sends out a signal, which is then received by the device. Easy, right? I couldn't find the definitive correct way to model this!
First of all, how does a class sends a signal in a class diagram? I thought about an directed association from sensor to signal with the stereotype "send". Is that the right way to model it?
And how to show that the device received exactly that message? I know there is an compartment for receiving signals, but that can be overlooked easily. Is it allowed to create a direct (graphical) association between signal and receiver?

