Package jade.lang.acl

Interface MessageTemplate.MatchExpression

  • All Superinterfaces:
    Serializable, Serializable
    Enclosing class:
    MessageTemplate

    public static interface MessageTemplate.MatchExpression
    extends Serializable
    This interface must be overriden in order to define an application specific MessageTemplate. In particular in the method match() the programmer should realize the necessary checks on the ACLMessage in order to return true if the message match with the application specific requirements false otherwise.
    • Method Detail

      • match

        boolean match​(ACLMessage msg)
        Check whether a given ACL message matches this template. Concrete implementations of this interface will have this method called to accept or refuse an ACL message.
        Parameters:
        msg - The ACL message to match against this message template.
        Returns:
        A compliant implementation will return true if the parameter ACL message matches the template, and false otherwise.