1 #ifndef FIPA_ACL_MESSAGE_ENVELOPE_H 2 #define FIPA_ACL_MESSAGE_ENVELOPE_H 5 #include <fipa_acl/message_generator/acl_message.h> 6 #include <fipa_acl/message_generator/received_object.h> 7 #include <fipa_acl/message_generator/types.h> 75 PayloadLength mPayloadLength;
82 PayloadEncoding mPayloadEncoding;
126 TransportBehaviour mTransportBehaviour;
155 void addTo(
const AgentID& agent);
168 bool removeTo(
const AgentID& agentId);
185 void setFrom(
const AgentID& from);
197 void setComments(
const Comments& comments);
221 void setACLRepresentation(
const std::string& represention);
231 void setPayloadLength(
const PayloadLength& length);
241 void setPayloadEncoding(
const PayloadEncoding& encoding);
246 const base::Time&
getDate()
const {
return mDate; }
251 void setDate(
const base::Time& date);
261 void setIntendedReceivers(
const AgentIDList& receivers);
266 void addIntendedReceiver(
const AgentID& agent);
271 bool removeIntendedReceiver(
const AgentID& agent);
292 bool hasReceivedObject(
const ReceivedObject& receivedObject)
const;
302 void setTransportBehaviour(
const TransportBehaviour& transportBehaviour);
325 ACLBaseEnvelope flatten(
const ACLBaseEnvelopeList& extraEnvelopes)
const;
357 ACLBaseEnvelopeList mExtraEnvelopes;
365 std::string mPayload;
370 static uint32_t mStampCounter;
376 static ID createLocalId();
460 std::string getDeliveryPathString()
const;
467 void setPayload(
const std::string& payload) { mPayload = payload; }
515 #endif // FIPA_ACL_MESSAGE_ENVELOPE_H std::string TransportBehaviour
ACLBaseEnvelope flattened() const
const std::string & getPayload() const
The ACLBaseEnvelope defines the layout for an envelope with which ACLMessage data can be wrapped...
const representation::Type & getACLRepresentation() const
const ACLBaseEnvelopeList & getExtraEnvelopes() const
ACLMessage envelope (also typed as fipa::acl::Letter) includes the base envelope and updated fields...
const PayloadLength & getPayloadLength() const
const PayloadEncoding & getPayloadEncoding() const
const ACLBaseEnvelope & getBaseEnvelope() const
const TransportBehaviour & getTransportBehaviour() const
std::string ACLRepresentation
std::vector< UserdefParam > UserdefinedParameterList
void setExtraEnvelopes(const ACLBaseEnvelopeList &envelopes)
void setPayload(const std::string &payload)
const std::string & getACLRepresentationString() const
std::vector< AgentID > AgentIDList
void clearAllIntendedReceivers()
bool contains(envelope::ParameterId id) const
const base::Time & getDate() const
const Comments & getComments() const
const std::string TypeTxt[]
std::vector< ReceivedObject > ReceivedObjectList
void setBaseEnvelope(const ACLBaseEnvelope &envelope)
std::vector< ACLBaseEnvelope > ACLBaseEnvelopeList
const AgentID & getFrom() const
void stamp(const ReceivedObject &receivedObject)
bool hasStamp(const ReceivedObject &receivedObject) const
This class provides a representation of a message conforming to the FIPA specification SC00061...
void addExtraEnvelope(const ACLBaseEnvelope &envelope)
std::string PayloadEncoding
Implements the general AgentID functionality, which is present throughout the fipa specifications(FIP...
Foundation of Physical Intelligent Agents.
const ReceivedObject & getReceivedObject() const
ACLBaseEnvelope flatten(const ACLBaseEnvelopeList &extraEnvelopes) const
const AgentIDList & getIntendedReceivers() const
const AgentIDList & getTo() const
ACLEnvelope Letter
Define a letter to be the envelope including the payload.
const UserdefinedParameterList & getUserdefinedParameters() const