fipa_acl  1.4
Public Member Functions | List of all members
fipa::acl::UndefinedAgentID Class Reference

#include <agent_id.h>

Inherits fipa::acl::AgentID.

Public Member Functions

 UndefinedAgentID ()
 
- Public Member Functions inherited from fipa::acl::AgentID
bool isValid () const
 
 AgentID ()
 Default constructor. More...
 
 AgentID (const std::string &name)
 Construct an AgentID by name. More...
 
const std::string & getName () const
 setter and getter methods for all fields; they do not result in deep-copies assignments/retreivals, but this can be easily changed if needed through the overloaded operator which do More...
 
void setName (const std::string &name)
 the method checks whether the passed name string is a word or not(according to the fipa spec) More...
 
void addAddress (const std::string &adr)
 the method checks whether the passed address string is a word or not(according to the fipa spec) More...
 
const std::vector< std::string > & getAddresses () const
 Retrieve list of addresses. More...
 
void setAddresses (const std::vector< std::string > &addresses)
 Set list of addresses – overwrites existing list of addresses. More...
 
void addResolver (const AgentID &aid)
 Add resolver. More...
 
const ResolversgetResolvers () const
 Get list of resolvers. More...
 
void setResolvers (const Resolvers &resolvers)
 Set list of resolvers. More...
 
void deleteResolver (const AgentID &id)
 Delete a resolver. More...
 
void addUserdefParam (const UserdefParam &p)
 Add a userdefined parameter. More...
 
const std::vector< UserdefParam > & getUserdefParams () const
 Get the all userdefined parameter. More...
 
void setUserdefParams (const std::vector< UserdefParam > &params)
 
bool empty () const
 Check if AgentId is empty, i.e. does not contain a name. More...
 
bool operator== (const AgentID &other) const
 overloaded equality operator for AgentID; the signature of the function was intentionally changed from the normal operator== (const type&, const type&) More...
 
bool operator!= (const AgentID &other) const
 Allow testing on inequality of agents based on the agents' names only. More...
 
bool operator< (const AgentID &other) const
 Allow comparing two agents, based on the agent name only. More...
 
std::string toString (size_t indent=0) const
 

Additional Inherited Members

- Static Public Member Functions inherited from fipa::acl::AgentID
static bool compareEqual (const AgentID &a, const AgentID &b, int depth)
 alternative function for equality operator; the depth can be specified through the depth param More...
 
- Static Public Attributes inherited from fipa::acl::AgentID
static int msResolverComparisonDepth = 1
 
- Protected Attributes inherited from fipa::acl::AgentID
std::string mName
 
- Static Protected Attributes inherited from fipa::acl::AgentID
static const std::string UNDEFINED = "agent_id:undefined"
 

Detailed Description

Null Object for AgentID class

Definition at line 223 of file agent_id.h.

Constructor & Destructor Documentation

◆ UndefinedAgentID()

fipa::acl::UndefinedAgentID::UndefinedAgentID ( )

Definition at line 241 of file agent_id.cpp.

242  : AgentID()
243 {
245 }
AgentID()
Default constructor.
Definition: agent_id.cpp:21
std::string mName
Definition: agent_id.h:57
static const std::string UNDEFINED
Definition: agent_id.h:60

The documentation for this class was generated from the following files: