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 methodmatch()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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanmatch(ACLMessage msg)Check whether a given ACL message matches this template.
-
-
-
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
trueif the parameter ACL message matches the template, andfalseotherwise.
-
-