jade.lang.acl
Interface MessageTemplate.MatchExpression
- All Superinterfaces:
- java.io.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 Summary |
boolean |
match(ACLMessage msg)
Check whether a given ACL message matches this
template. |
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.
These are the official JADE API. For these API backward compatibility is guaranteed accross JADE versions