jade.lang.acl
Interface MessageTemplate.MatchExpression

All Superinterfaces:
java.io.Serializable, Serializable
Enclosing interface:
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 Summary
 boolean match(ACLMessage msg)
          Check whether a given ACL message matches this template.
 

Method Detail

match

public 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.


JADE