fipa_acl  1.4
received_object.h
Go to the documentation of this file.
1 #ifndef FIPA_ACL_RECEIVED_OBJECT_H
2 #define FIPA_ACL_RECEIVED_OBJECT_H
3 
4 #include <string>
5 #include <vector>
6 #include <base/Time.hpp>
7 #include "userdef_param.h"
8 
9 namespace fipa {
10 namespace acl {
11 
12 typedef std::string URL;
13 typedef std::string ID;
14 typedef std::string Via;
15 
20 {
21 private:
25  URL mBy;
26 
30  URL mFrom;
31 
35  base::Time mDate;
36 
40  ID mId;
41 
45  Via mVia;
46 
50  std::vector<UserdefParam> mUserdefinedParameters;
51 
52 public:
53 
57  bool operator==(const ReceivedObject& receivedObject) const { return true; }
58 
62  const URL& getBy() const { return mBy; }
63 
67  void setBy(const URL& by) { mBy = by; }
68 
72  const URL& getFrom() const { return mFrom; }
73 
77  void setFrom(const URL& from) { mFrom = from; }
78 
82  const base::Time& getDate() const { return mDate; }
83 
87  void setDate(const base::Time& date) { mDate = date; }
88 
92  const ID& getId() const { return mId; }
93 
97  void setId(const ID& id) { mId = id; }
98 
102  const Via& getVia() const { return mVia; }
103 
107  void setVia(const Via& via) { mVia = via; }
108 
112  std::string toString(size_t indent = 0) const;
113 
117  const UserdefinedParameterList& getUserdefinedParameters() const { return mUserdefinedParameters; }
118 
122  void setUserdefinedParameters(const UserdefinedParameterList& paramList) { mUserdefinedParameters = paramList; }
123 };
124 
125 
126 } // end namespace acl
127 } // end namespace fipa
128 
129 #endif // FIPA_ACL_RECEIVED_OBJECT_H
void setVia(const Via &via)
std::string ID
void setUserdefinedParameters(const UserdefinedParameterList &paramList)
const ID & getId() const
std::string Via
const UserdefinedParameterList & getUserdefinedParameters() const
std::vector< UserdefParam > UserdefinedParameterList
Definition: userdef_param.h:94
std::string URL
bool operator==(const ReceivedObject &receivedObject) const
const Via & getVia() const
std::string toString(size_t indent=0) const
const URL & getFrom() const
void setFrom(const URL &from)
void setId(const ID &id)
const base::Time & getDate() const
const URL & getBy() const
defines the UserdefParam class
void setBy(const URL &by)
Foundation of Physical Intelligent Agents.
Definition: conversation.cpp:6
void setDate(const base::Time &date)