public class ACLMessage extends ActMessage
Modifier and Type | Field and Description |
---|---|
static int |
ACCEPT_PROPOSAL
constant identifying the FIPA performative
|
static java.lang.String |
ACCEPT_PROPOSAL_STRING |
static int |
AGREE
constant identifying the FIPA performative
|
static java.lang.String |
AGREE_STRING |
static int |
CANCEL
constant identifying the FIPA performative
|
static java.lang.String |
CANCEL_STRING |
static int |
CFP
constant identifying the FIPA performative
|
static java.lang.String |
CFP_STRING |
static int |
CONFIRM
constant identifying the FIPA performative
|
static java.lang.String |
CONFIRM_STRING |
static int |
DISCONFIRM
constant identifying the FIPA performative
|
static java.lang.String |
DISCONFIRM_STRING |
static int |
FAILURE
constant identifying the FIPA performative
|
static java.lang.String |
FAILURE_STRING |
static int |
INFORM
constant identifying the FIPA performative
|
static int |
INFORM_IF
constant identifying the FIPA performative
|
static java.lang.String |
INFORM_IF_STRING |
static int |
INFORM_REF
constant identifying the FIPA performative
|
static java.lang.String |
INFORM_REF_STRING |
static java.lang.String |
INFORM_STRING |
static int |
NOT_UNDERSTOOD
constant identifying the FIPA performative
|
static java.lang.String |
NOT_UNDERSTOOD_STRING |
static java.util.List<java.lang.String> |
performatives |
static int |
PROPAGATE
constant identifying the FIPA performative
|
static java.lang.String |
PROPAGATE_STRING |
static int |
PROPOSE
constant identifying the FIPA performative
|
static java.lang.String |
PROPOSE_STRING |
static int |
PROXY
constant identifying the FIPA performative
|
static java.lang.String |
PROXY_STRING |
static int |
QUERY_IF
constant identifying the FIPA performative
|
static java.lang.String |
QUERY_IF_STRING |
static int |
QUERY_REF
constant identifying the FIPA performative
|
static java.lang.String |
QUERY_REF_STRING |
static int |
REFUSE
constant identifying the FIPA performative
|
static java.lang.String |
REFUSE_STRING |
static int |
REJECT_PROPOSAL
constant identifying the FIPA performative
|
static java.lang.String |
REJECT_PROPOSAL_STRING |
static int |
REQUEST
constant identifying the FIPA performative
|
static java.lang.String |
REQUEST_STRING |
static int |
REQUEST_WHEN
constant identifying the FIPA performative
|
static java.lang.String |
REQUEST_WHEN_STRING |
static int |
REQUEST_WHENEVER
constant identifying the FIPA performative
|
static java.lang.String |
REQUEST_WHENEVER_STRING |
static int |
SUBSCRIBE
constant identifying the FIPA performative
|
static java.lang.String |
SUBSCRIBE_STRING |
static int |
UNKNOWN
constant identifying an unknown performative
|
action, fields
Constructor and Description |
---|
ACLMessage()
Default constructor for ACLMessage class
|
ACLMessage(int perf,
java.lang.String cont) |
ACLMessage(java.lang.String actType)
Constructor for ACLMessage class
|
ACLMessage(java.lang.String actType,
java.lang.String cont)
Constructor for ACLMessage class
|
Modifier and Type | Method and Description |
---|---|
void |
addReceiver(AgentAddress r)
Adds a value to
:receiver slot. |
void |
addReplyTo(AgentAddress dest)
Adds a value to
:reply-to slot. |
void |
clearAllReceiver()
Removes all values from
:receiver slot. |
void |
clearAllReplyTo()
Removes all values from
:reply_to slot. |
ACLMessage |
createReply()
create a new ACLMessage that is a reply to this message.
|
java.lang.String |
getAct() |
java.lang.String |
getConversationIDentifier() |
java.lang.String |
getEncoding() |
java.lang.String |
getEnvelope() |
java.lang.String |
getInReplyTo() |
java.lang.String |
getLanguage() |
java.lang.String |
getOntology() |
java.lang.String |
getPerformative() |
java.lang.String |
getProtocol() |
java.util.List<AgentAddress> |
getReceivers()
Return the list of receivers..
|
java.lang.String |
getReplyBy() |
java.lang.String |
getReplyWith() |
boolean |
removeReceiver(AgentAddress r)
Removes a value from
:receiver slot. |
boolean |
removeReplyTo(AgentAddress dest)
Removes a value from
:reply_to slot. |
void |
setContent(java.lang.String s) |
void |
setConversationID(java.lang.String s) |
void |
setEncoding(java.lang.String s) |
void |
setEnvelope(java.lang.String s) |
void |
setInReplyTo(java.lang.String s) |
void |
setLanguage(java.lang.String s) |
void |
setOntology(java.lang.String s) |
void |
setPerformative(java.lang.String s) |
void |
setProtocol(java.lang.String s) |
void |
setReplyBy(java.util.Date s) |
void |
setReplyBy(java.lang.String s) |
void |
setReplyWith(java.lang.String s) |
java.lang.String |
toString() |
getAction, getContent, getFieldValue, getKeys, getObject, setField, setObject
clone, getConversationID, getReceiver, getSender
public static final int ACCEPT_PROPOSAL
public static final int AGREE
public static final int CANCEL
public static final int CFP
public static final int CONFIRM
public static final int DISCONFIRM
public static final int FAILURE
public static final int INFORM
public static final int INFORM_IF
public static final int INFORM_REF
public static final int NOT_UNDERSTOOD
public static final int PROPOSE
public static final int QUERY_IF
public static final int QUERY_REF
public static final int REFUSE
public static final int REJECT_PROPOSAL
public static final int REQUEST
public static final int REQUEST_WHEN
public static final int REQUEST_WHENEVER
public static final int SUBSCRIBE
public static final int PROXY
public static final int PROPAGATE
public static final int UNKNOWN
public static final java.lang.String ACCEPT_PROPOSAL_STRING
public static final java.lang.String AGREE_STRING
public static final java.lang.String CANCEL_STRING
public static final java.lang.String CFP_STRING
public static final java.lang.String CONFIRM_STRING
public static final java.lang.String DISCONFIRM_STRING
public static final java.lang.String FAILURE_STRING
public static final java.lang.String INFORM_STRING
public static final java.lang.String INFORM_IF_STRING
public static final java.lang.String INFORM_REF_STRING
public static final java.lang.String NOT_UNDERSTOOD_STRING
public static final java.lang.String PROPOSE_STRING
public static final java.lang.String QUERY_IF_STRING
public static final java.lang.String QUERY_REF_STRING
public static final java.lang.String REFUSE_STRING
public static final java.lang.String REJECT_PROPOSAL_STRING
public static final java.lang.String REQUEST_STRING
public static final java.lang.String REQUEST_WHEN_STRING
public static final java.lang.String REQUEST_WHENEVER_STRING
public static final java.lang.String SUBSCRIBE_STRING
public static final java.lang.String PROXY_STRING
public static final java.lang.String PROPAGATE_STRING
public static final java.util.List<java.lang.String> performatives
public ACLMessage()
public ACLMessage(java.lang.String actType)
public ACLMessage(java.lang.String actType, java.lang.String cont)
public ACLMessage(int perf, java.lang.String cont)
public java.lang.String getAct()
public void setContent(java.lang.String s)
setContent
in class ActMessage
public java.lang.String getPerformative()
public void setPerformative(java.lang.String s)
public void addReceiver(AgentAddress r)
:receiver
slot. Warning:
no checks are made to validate the slot value.r
- The value to add to the slot value set.public java.util.List<AgentAddress> getReceivers()
public boolean removeReceiver(AgentAddress r)
:receiver
slot. Warning: no checks are made to validate the slot
value.r
- The value to remove from the slot value set.public void clearAllReceiver()
:receiver
slot. Warning: no checks are made to validate the slot
value.public void addReplyTo(AgentAddress dest)
:reply-to
slot. Warning:
no checks are made to validate the slot value.dest
- The value to add to the slot value set.public boolean removeReplyTo(AgentAddress dest)
:reply_to
slot. Warning: no checks are made to validate the slot
value.dest
- The value to remove from the slot value set.public void clearAllReplyTo()
:reply_to
slot. Warning: no checks are made to validate the slot
value.public java.lang.String getEnvelope()
public void setEnvelope(java.lang.String s)
public java.lang.String getConversationIDentifier()
public void setConversationID(java.lang.String s)
public java.lang.String getProtocol()
public void setProtocol(java.lang.String s)
public java.lang.String getReplyWith()
public void setReplyWith(java.lang.String s)
public java.lang.String getReplyBy()
public void setReplyBy(java.lang.String s)
public void setReplyBy(java.util.Date s)
public java.lang.String getInReplyTo()
getInReplyTo
in class ActMessage
public void setInReplyTo(java.lang.String s)
setInReplyTo
in class ActMessage
public java.lang.String getLanguage()
public void setLanguage(java.lang.String s)
public java.lang.String getEncoding()
public void setEncoding(java.lang.String s)
public java.lang.String getOntology()
public void setOntology(java.lang.String s)
public ACLMessage createReply()
Fabien Michel, Olivier Gutknecht, Jacques Ferber - September 9 2019