public class AddSocialCommitment extends SocialCommitmentOperator
Modifier and Type | Field and Description |
---|---|
protected Act |
act |
protected Class<? extends Action> |
actionClass |
protected Object |
actionData |
protected Condition |
condition |
protected URLDescriptor |
creditor |
protected URLDescriptor |
debtor |
protected Event |
event |
protected Event[] |
events |
protected boolean |
notDebtor |
protected String |
performative |
protected boolean |
persistent |
protected boolean |
shared |
Constructor and Description |
---|
AddSocialCommitment(URLDescriptor newDebtor,
URLDescriptor newCreditor,
String newPerformative,
Act newAct,
Event newEvent,
Class<? extends Action> newActionClass,
Object newActionData,
boolean newShared,
boolean newPersistent,
Condition newCondition,
Event[] newEvents) |
Modifier and Type | Method and Description |
---|---|
protected Action |
createAction(PolicyAgentInterface agent) |
protected Action |
createActionWithData(PolicyAgentInterface agent) |
protected SocialCommitment |
createCommitment(SocialCommitmentsStore store,
PolicyAgentInterface agent) |
boolean |
equals(SocialCommitmentOperator o)
Returns true if all of this object's protected variables are the same
(except condition and events)
|
Status |
executeOperator(SocialCommitmentsStore store,
PolicyAgentInterface agent) |
Act |
getAct() |
Class<? extends Action> |
getActionClass() |
Object |
getActionData() |
URLDescriptor |
getCreditor() |
URLDescriptor |
getDebtor() |
Event |
getEvent() |
MLMessage |
getMessage() |
String |
getPerformative() |
boolean |
isNotDebtor() |
boolean |
isShared() |
void |
setNotDebtor(boolean newNotDebtor) |
String |
toString() |
compareTo
protected URLDescriptor debtor
protected URLDescriptor creditor
protected String performative
protected Act act
protected Event event
protected Object actionData
protected boolean shared
protected boolean persistent
protected Condition condition
protected Event[] events
protected boolean notDebtor
public AddSocialCommitment(URLDescriptor newDebtor, URLDescriptor newCreditor, String newPerformative, Act newAct, Event newEvent, Class<? extends Action> newActionClass, Object newActionData, boolean newShared, boolean newPersistent, Condition newCondition, Event[] newEvents)
public final Status executeOperator(SocialCommitmentsStore store, PolicyAgentInterface agent)
executeOperator
in class SocialCommitmentOperator
protected SocialCommitment createCommitment(SocialCommitmentsStore store, PolicyAgentInterface agent)
protected Action createAction(PolicyAgentInterface agent)
protected Action createActionWithData(PolicyAgentInterface agent)
public String toString()
toString
in class SocialCommitmentOperator
public URLDescriptor getDebtor()
public URLDescriptor getCreditor()
public String getPerformative()
public Act getAct()
public MLMessage getMessage()
public Event getEvent()
public Object getActionData()
public boolean isShared()
public boolean isNotDebtor()
public void setNotDebtor(boolean newNotDebtor)
newNotDebtor
- public boolean equals(SocialCommitmentOperator o)
o
-