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>
246 const base::Time&
getDate()
const {
return mDate; }
251 void setDate(
const base::Time& date);
341 class EnvelopeFormat;
365 std::string mPayload;
370 static uint32_t mStampCounter;
376 static ID createLocalId();
467 void setPayload(
const std::string& payload) { mPayload = payload; }
515 #endif // FIPA_ACL_MESSAGE_ENVELOPE_H
std::string TransportBehaviour
ACLBaseEnvelope flattened() const
void setDate(const base::Time &date)
void stamp(const fipa::acl::AgentID &id)
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
void setComments(const Comments &comments)
const PayloadEncoding & getPayloadEncoding() const
const ACLBaseEnvelope & getBaseEnvelope() const
bool hasStamp(fipa::acl::AgentID id) const
const TransportBehaviour & getTransportBehaviour() const
std::string ACLRepresentation
std::vector< UserdefParam > UserdefinedParameterList
bool removeTo(const AgentID &agentId)
ACLBaseEnvelope merge(const ACLBaseEnvelope &other) const
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)
void insert(const ACLMessage &msg, const fipa::acl::representation::Type &format)
void setIntendedReceivers(const AgentIDList &receivers)
std::vector< ACLBaseEnvelope > ACLBaseEnvelopeList
const AgentID & getFrom() const
bool removeIntendedReceiver(const AgentID &agent)
void setTo(const AgentIDList &receivers)
AgentIDList getDeliveryPath() const
void stamp(const ReceivedObject &receivedObject)
void addIntendedReceiver(const AgentID &agent)
bool hasStamp(const ReceivedObject &receivedObject) const
This class provides a representation of a message conforming to the FIPA specification SC00061...
void setUserdefinedParameters(const UserdefinedParameterList ¶meters)
void setFrom(const AgentID &from)
fipa::acl::ACLMessage getACLMessage() const
void setACLRepresentation(representation::Type representation)
void addExtraEnvelope(const ACLBaseEnvelope &envelope)
void setReceivedObject(const ReceivedObject &receivedObject)
void addTo(const AgentID &agent)
std::string PayloadEncoding
void setPayloadEncoding(const PayloadEncoding &encoding)
ACLEnvelope createDedicatedEnvelope(const AgentID &receiverId) const
void setPayloadLength(const PayloadLength &length)
bool hasReceivedObject(const ReceivedObject &receivedObject) const
Implements the general AgentID functionality, which is present throughout the fipa specifications(FIP...
const ReceivedObject & getReceivedObject() const
ACLBaseEnvelope flatten(const ACLBaseEnvelopeList &extraEnvelopes) const
void setTransportBehaviour(const TransportBehaviour &transportBehaviour)
const AgentIDList & getIntendedReceivers() const
const AgentIDList & getTo() const
std::string getDeliveryPathString() const
ACLEnvelope Letter
Define a letter to be the envelope including the payload.
const UserdefinedParameterList & getUserdefinedParameters() const