1 #ifndef FIPA_ACL_ROLE_H
2 #define FIPA_ACL_ROLE_H
6 #include <fipa_acl/message_generator/agent_id.h>
13 typedef std::string
RoleId;
47 static const Role self();
62 return mId < other.mId;
67 return !(mId == other.mId);
72 return mId == other.mId;
102 std::map<Role, AgentIDList> mExpectedAgentMapping;
114 const std::map<Role, AgentIDList>&
getMapping()
const {
return mExpectedAgentMapping; }
173 #endif // FIPA_ACL_ROLE_H
void clearExpectedAgents(const Role &role)
bool operator!=(const Role &other) const
std::string toString() const
void setSelf(const AgentID &id)
const AgentIDList & getExpectedAgents(const Role &role) const
Role & operator=(const Role &other)
bool isSelf(const AgentID &id) const
std::vector< AgentID > AgentIDList
Mapping between roles and actual agent ids.
void resetExpectedAgents()
bool operator==(const Role &other) const
void addRole(const Role &role)
bool operator<(const Role &other) const
static const RoleId UNDEFINED_ID
static const RoleId SELF_ID
void addExpectedAgent(const Role &role, const AgentID &agent)
bool isExpected(const Role &role, const AgentID &agent) const
Implements the general AgentID functionality, which is present throughout the fipa specifications(FIP...
const std::map< Role, AgentIDList > & getMapping() const
std::string toString() const