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:
-
type(str) –Message distinctive type
matches
Checks if message's attributes match all provided attribute conditions:
-
If condition is
Noneor omitted, it matches anything. -
If condition equals attribute, it matches the attribute.
-
If condition is a container (list, tuple, range, etc.) and contains the attribute, it matches the attribute.
Use Not(condition) to invert condition matching.
Use Glob(pattern)
or Regex(pattern) for string pattern matching.
Returns:
-
bool–Trueif all attributes match,Falseif any does not match