Message
Msg
The data object generated by input port that is sent as an argument to its subscribed calls and can be sent with an output port
Parameters:
-
source
(Input | None
, default:None
) –Input port instance that generated the message
matches
Checks if message's attributes match all provided attribute conditions:
-
If condition is
None
or omitted, it matches anything. -
If condition equals attribute, it matches the attribute.
-
If condition is a container and contains the attribute, it matches the attribute.
Use Not(condition)
to invert condition matching.
Returns:
-
bool
–True
if all attributes match,False
if any does not match