public class MessageEventDescriptor extends EventDescriptor
EventDescriptor.EventDescriptorLispOperator
Modifier and Type | Field and Description |
---|---|
private static CasaLispOperator |
MSGEVENT_DESCRIPTOR
Lisp operator: (MSGEVENT-DESCRIPTOR performative act)
Create a MessageEventDescriptor object. |
agent
Constructor and Description |
---|
MessageEventDescriptor(PolicyAgentInterface agent,
String type,
Object... pairs) |
MessageEventDescriptor(PolicyAgentInterface agent,
String eventType,
Pair<String,? extends 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 |
---|---|
protected String |
getLispFunctionName() |
boolean |
overrides(EventDescriptor other)
Determines if this EventDescriptor should override (replace, takes precedence over)
the other one such that the other one's associated policy doesn't get executed at
all.
|
compareTo, getAct, getName, getPattern, getPerformative, getType, isApplicable, makePairs, setPattern, toString
private static final CasaLispOperator MSGEVENT_DESCRIPTOR
public MessageEventDescriptor(PolicyAgentInterface agent, String eventType, Pair<String,? extends Object>[] pairs)
agent
- eventType
- pairs
- public MessageEventDescriptor(PolicyAgentInterface agent, String type, Object... pairs)
protected String getLispFunctionName()
getLispFunctionName
in class EventDescriptor
public boolean overrides(EventDescriptor other)
overrides
in class EventDescriptor
other
- The EventDescriptor to compare toEventDescriptor.overrides(EventDescriptor)