public class SocialCommitmentDescriptor extends Object implements Descriptor<SocialCommitment>, Comparable<SocialCommitmentDescriptor>
Modifier and Type | Field and Description |
---|---|
protected EventPattern |
pattern |
private static CasaLispOperator |
SCDESCRIPTOR
Lisp operator: (SCDESCRIPTOR performative act)
Create a SocialCommitmentDescriptor object. |
Constructor and Description |
---|
SocialCommitmentDescriptor(PolicyAgentInterface agent,
TreeMap<String,Object> pairs)
Create a MessageEventDescriptor for agent of type eventType (must be
subtype of messageEvent in the agent's ontology) with the constrains on message
matching listed in pairs (key/value pairs in the message).
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SocialCommitmentDescriptor o) |
Status |
isApplicable(PolicyAgentInterface agent,
SocialCommitment sc)
Returns true if descriptor matches the instance in the context of
the agent.
|
String |
toString() |
protected EventPattern pattern
private static final CasaLispOperator SCDESCRIPTOR
public SocialCommitmentDescriptor(PolicyAgentInterface agent, TreeMap<String,Object> pairs)
agent
- eventType
- pairs
- public Status isApplicable(PolicyAgentInterface agent, SocialCommitment sc)
Descriptor
isApplicable
in interface Descriptor<SocialCommitment>
agent
- the agent that forms the context of evaluation.sc
- the object to match against.public int compareTo(SocialCommitmentDescriptor o)
compareTo
in interface Comparable<SocialCommitmentDescriptor>