MultiAgentDecisionProcess
Release 0.2.1
|
NamedDescribedEntity represents named entities. More...
#include <NamedDescribedEntity.h>
Public Member Functions | |
std::string | GetDescription () const |
Get the description of the NamedDescribedEntity. | |
std::string | GetName () const |
Get the name of the NamedDescribedEntity. | |
NamedDescribedEntity (std::string name=std::string("undefined"), std::string description=std::string("undefined")) | |
(default) Constructor | |
NamedDescribedEntity (const NamedDescribedEntity &) | |
copy constructor. | |
void | Print () const |
Prints the name and description (by default). | |
void | PrintBrief () const |
Prints the name (by default). | |
void | SetDescription (std::string description) |
Set the description. | |
void | SetName (std::string name) |
Set the name. | |
virtual std::string | SoftPrint () const |
Returns the name and description (if not reimplemented). | |
virtual std::string | SoftPrintBrief () const |
Returns the name (if not reimplemented). | |
virtual | ~NamedDescribedEntity () |
Destructor. |
Protected Attributes | |
std::string * | _m_description |
Pointer to the description. | |
std::string * | _m_name |
Pointer to the name. |
NamedDescribedEntity represents named entities.
For example actions and observations in a decision process.
Definition at line 39 of file NamedDescribedEntity.h.
NamedDescribedEntity::NamedDescribedEntity | ( | std::string | name = std::string("undefined") , |
std::string | description = std::string("undefined") |
||
) |
(default) Constructor
Definition at line 35 of file NamedDescribedEntity.cpp.
NamedDescribedEntity::NamedDescribedEntity | ( | const NamedDescribedEntity & | a | ) |
copy constructor.
Copy assignment constructor.
Definition at line 41 of file NamedDescribedEntity.cpp.
References DEBUG_NDE, GetDescription(), and GetName().
|
virtual |
|
inline |
Get the description of the NamedDescribedEntity.
Definition at line 62 of file NamedDescribedEntity.h.
References _m_description.
Referenced by DecPOMDPDiscrete::ExtractMADPDiscrete(), NamedDescribedEntity(), and MultiAgentDecisionProcess::SoftPrint().
|
inline |
Get the name of the NamedDescribedEntity.
Definition at line 60 of file NamedDescribedEntity.h.
References _m_name.
Referenced by TransitionObservationIndependentMADPDiscrete::CreateJointStates(), DecPOMDPDiscrete::ExtractMADPDiscrete(), TransitionObservationIndependentMADPDiscrete::GetState(), NamedDescribedEntity(), and MultiAgentDecisionProcess::SoftPrint().
|
inline |
Prints the name and description (by default).
Reimplemented in TransitionObservationIndependentMADPDiscrete, MultiAgentDecisionProcessDiscrete, TOIDecPOMDPDiscrete, and MultiAgentDecisionProcess.
Definition at line 79 of file NamedDescribedEntity.h.
References SoftPrint().
|
inline |
Prints the name (by default).
Definition at line 81 of file NamedDescribedEntity.h.
References SoftPrintBrief().
|
inline |
Set the description.
Definition at line 70 of file NamedDescribedEntity.h.
References _m_description.
Referenced by TransitionObservationIndependentMADPDiscrete::CreateJointStates(), DecPOMDPDiscrete::ExtractMADPDiscrete(), and TransitionObservationIndependentMADPDiscrete::GetState().
|
inline |
Set the name.
Definition at line 65 of file NamedDescribedEntity.h.
References _m_name.
Referenced by TransitionObservationIndependentMADPDiscrete::CreateJointStates(), DecPOMDPDiscrete::ExtractMADPDiscrete(), and TransitionObservationIndependentMADPDiscrete::GetState().
|
virtual |
Returns the name and description (if not reimplemented).
Reimplemented in TransitionObservationIndependentMADPDiscrete, MultiAgentDecisionProcessDiscrete, TOIDecPOMDPDiscrete, DecPOMDPDiscrete, MultiAgentDecisionProcess, POSGDiscrete, TOICompactRewardDecPOMDPDiscrete, and TOIFactoredRewardDecPOMDPDiscrete.
Definition at line 54 of file NamedDescribedEntity.cpp.
Referenced by TOICompactRewardDecPOMDPDiscrete::GetReward(), Print(), and TransitionObservationIndependentMADPDiscrete::SoftPrintActionSets().
|
virtual |
Returns the name (if not reimplemented).
Definition at line 62 of file NamedDescribedEntity.cpp.
Referenced by AlphaVectorPlanning::ExportPOMDPFile(), PrintBrief(), ProblemFireFighting::ProblemFireFighting(), SimulationDecPOMDPDiscrete::RunSimulations(), ActionObservationHistory::SoftPrint(), ObservationHistory::SoftPrint(), and SimulationDecPOMDPDiscrete::Step().
|
protected |
Pointer to the description.
Definition at line 47 of file NamedDescribedEntity.h.
Referenced by GetDescription(), and SetDescription().
|
protected |
Pointer to the name.
Definition at line 45 of file NamedDescribedEntity.h.