Filtering Messages by Type

Sometimes you may need to filter incoming and/or outcoming messages by message type – i.e., send and receive only messages of the certain type and discard other ones. Message type checking is implemented by specifying the type of messages that are allowed to be sent and received by the port. Those messages that cannot be cast to the specified message type are discarded. 

 To make a port filter incoming/outcoming messages by type

  1. Select the port in a graphical editor.
  2. Go to the Advanced section of the Properties view.
  3. Specify the type of messages that are allowed to be sent and received by the port in the In message type and Out message type edit boxes correspondingly. Use combo boxes to choose from all known message classes of this model. If you leave Object here, message type checking will not be performed.