public class ReplyAction extends Action
Constructor and Description |
---|
ReplyAction() |
Modifier and Type | Method and Description |
---|---|
private static String |
getReturnPerformative(PolicyAgentInterface agent,
String requestPerformative,
boolean affirmative)
Determines the correct return message performative:
requestPerform affirmative negative
ML.REQUEST ML.AGREE ML.REFUSE
ML.SUBSCRIBE ML.CONTRACT ML.REFUSE
|
PerformDescriptor |
perform(PolicyAgentInterface agent) |
public PerformDescriptor perform(PolicyAgentInterface agent)
private static String getReturnPerformative(PolicyAgentInterface agent, String requestPerformative, boolean affirmative)
requestPerform | affirmative | negative |
---|---|---|
ML.REQUEST | ML.AGREE | ML.REFUSE |
ML.SUBSCRIBE | ML.CONTRACT | ML.REFUSE |
affirmative
- set to true to get the normal affirmative reply; false to get the normal negative reply.requestPerformative
- the performative of the original request