8 #ifndef FIPA_ACL_ACLMESSAGE_H
9 #define FIPA_ACL_ACLMESSAGE_H
14 #include <fipa_acl/message_generator/agent_id.h>
15 #include <fipa_acl/message_generator/userdef_param.h>
16 #include <base/Time.hpp>
70 std::string mPerformative;
74 std::vector<AgentID> mReceivers;
76 std::vector<AgentID> mReplyTo;
78 std::string mLanguage;
80 std::string mEncoding;
82 std::string mOntology;
84 std::string mProtocol;
86 std::string mConversationId;
88 std::string mReplyWith;
90 std::string mInReplyTo;
94 std::vector<UserdefParam> mParameters;
274 void setContent(
const std::string& content) { mContent = content; }
280 void setBinaryContent(
const std::vector<uint8_t>& content) { mContent.assign(content.begin(), content.end()); }
356 extern std::map<ACLMessage::Performative, std::string>
PerformativeTxt;
std::string ConversationID
std::string getEncoding() const
void setReplyWith(const std::string &str)
void setConversationID(const std::string &str)
std::string getContent() const
void setLanguage(const std::string &str)
std::vector< UserdefParam > getUserdefParams() const
base::Time getReplyBy() const
std::string getPerformative() const
void setUserdefParams(const std::vector< UserdefParam > &p)
void deleteReplyTo(const AgentID &aid)
bool hasBinaryContent() const
void setInReplyTo(const std::string &str)
std::string getReplyWith() const
std::vector< AgentID > AgentIDList
std::string getOntology() const
AgentIDList getAllReplyTo() const
void addReplyTo(const AgentID &aid)
void setAllReceivers(const AgentIDList &receivers)
const std::string illegalWordStart
Performative
an enum of all the predefined fipa message performatives so far, presented in the order used in the m...
const std::string * getContentPtr() const
void setContent(const std::string &content)
void setSender(const AgentID &sender)
std::string getLanguage() const
void addUserdefParam(const UserdefParam &p)
std::string getInReplyTo() const
void setAllReplyTo(const AgentIDList &replyTo)
std::map< ACLMessage::Performative, std::string > PerformativeTxt
AgentID getSender() const
void setBinaryContent(const std::vector< uint8_t > &content)
std::string ContentLanguage
std::string getProtocol() const
This class provides a representation of a message conforming to the FIPA specification SC00061...
void setReplyBy(const base::Time &time)
bool operator==(const ACLMessage &other) const
static Performative performativeFromString(const std::string &performative)
Performative getPerformativeAsEnum() const
overloaded equality operator for UserdefParam class objects
void addReceiver(const AgentID &aid)
void deleteReceiver(const AgentID &aid)
std::string toString() const
void setPerformative(Performative perf)
Set performative.
const std::string illegalWordChars
Implements the general AgentID functionality, which is present throughout the fipa specifications(FIP...
AgentIDList getAllReceivers() const
void setEncoding(const std::string &str)
void setProtocol(const std::string &str)
the method checks whether the passed protocol string is a word or not(according to the fipa spec) ...
std::string getConversationID() const
ACLMessage()
Default constructor.
void setOntology(const std::string &str)