(self, msgData: MsgData)
Check that the message arguments given satisfy the topic message
        data specification (MDS).
        :param msgData: the topic message data to check for validity
        :raise SenderMissingReqdMsgDataError: if some required args are missing or not known
        :raise SenderUnknownMsgDataError: if some optional args are unknown.
Check that the message arguments given satisfy the topic message
        data specification (MDS).
        :param msgData: the topic message data to check for validity
        :raise SenderMissingReqdMsgDataError: if some required args are missing or not known
        :raise SenderUnknownMsgDataError: if some optional args are unknown.
Check that the message arguments given satisfy the topic message data specification ( MDS ) . : param msgData : the topic message data to check for validity : raise SenderMissingReqdMsgDataError : if some required args are missing or not known : raise SenderUnknownMsgDataError : if some optional args are unknown .
def check(self, msgData: MsgData):
        """
        Check that the message arguments given satisfy the topic message
        data specification (MDS).
        :param msgData: the topic message data to check for validity
        :raise SenderMissingReqdMsgDataError: if some required args are missing or not known
        :raise SenderUnknownMsgDataError: if some optional args are unknown.
        """
        all = set(msgData)
        # check that it has all required args
        needReqd = set(self.allRequired)
        hasReqd = (needReqd <= all)
        if not hasReqd:
            raise SenderMissingReqdMsgDataError(
                self.topicNameTuple, list(msgData.keys()), needReqd - all)

        # check that all other args are among the optional spec
        optional = all - needReqd
        ok = (optional <= set(self.allOptional))
        if not ok:
            raise SenderUnknownMsgDataError(self.topicNameTuple,
                                            list(msgData.keys()), optional - set(self.allOptional))
def check ( self , msgData : MsgData ) : all = set ( msgData ) # check that it has all required args needReqd = set ( self . allRequired ) hasReqd = ( needReqd <= all ) if not hasReqd : raise SenderMissingReqdMsgDataError ( self . topicNameTuple , list ( msgData . keys ( ) ) , needReqd - all ) # check that all other args are among the optional spec optional = all - needReqd ok = ( optional <= set ( self . allOptional ) ) if not ok : raise SenderUnknownMsgDataError ( self . topicNameTuple , list ( msgData . keys ( ) ) , optional - set ( self . allOptional ) )