MultiAgentDecisionProcess
Release 0.2.1
|
AgentPOMDP represents an agent which POMDP-based policy. More...
#include <AgentPOMDP.h>
Public Member Functions | |
Index | Act (Index joI) |
Return an individual action index based on a joint observation index. | |
AgentPOMDP (const PlanningUnitDecPOMDPDiscrete &pu, Index id, QAV< PerseusPOMDPPlanner > *QPOMDP) | |
(default) Constructor | |
AgentPOMDP (const AgentPOMDP &a) | |
Copy constructor. | |
void | ResetEpisode () |
Will be called before an episode, to reinitialize the agent. | |
~AgentPOMDP () | |
Destructor. | |
![]() | |
AgentSharedObservations (const PlanningUnitDecPOMDPDiscrete &pu, Index id) | |
(default) Constructor | |
AgentSharedObservations (const AgentSharedObservations &a) | |
Copy constructor. | |
~AgentSharedObservations () | |
Destructor. | |
![]() | |
AgentDecPOMDPDiscrete () | |
(default) Constructor | |
AgentDecPOMDPDiscrete (const PlanningUnitDecPOMDPDiscrete &pu, Index id) | |
AgentDecPOMDPDiscrete (const AgentDecPOMDPDiscrete &a) | |
Copy constructor. | |
const PlanningUnitDecPOMDPDiscrete * | GetPU () const |
![]() | |
virtual Index | GetIndex () const |
Retrieves the index of this agent. | |
virtual bool | GetVerbose () const |
If true, the agent will report more. | |
void | Print () const |
Print out some information about this agent. | |
virtual void | SetIndex (Index id) |
Sets the index of this agent. | |
virtual void | SetVerbose (bool verbose) |
Set whether this agent should be verbose. | |
SimulationAgent (Index id, bool verbose=false) | |
(default) Constructor | |
virtual std::string | SoftPrint () const |
Return some information about this agent. | |
virtual | ~SimulationAgent () |
Destructor. |
Private Attributes | |
JointBeliefInterface * | _m_jb |
Index | _m_prevJaI |
QAV< PerseusPOMDPPlanner > * | _m_QPOMDP |
size_t | _m_t |
AgentPOMDP represents an agent which POMDP-based policy.
Definition at line 44 of file AgentPOMDP.h.
AgentPOMDP::AgentPOMDP | ( | const PlanningUnitDecPOMDPDiscrete & | pu, |
Index | id, | ||
QAV< PerseusPOMDPPlanner > * | QPOMDP | ||
) |
(default) Constructor
Definition at line 37 of file AgentPOMDP.cpp.
References _m_jb, PlanningUnitMADPDiscrete::GetNewJointBeliefInterface(), and AgentDecPOMDPDiscrete::GetPU().
AgentPOMDP::AgentPOMDP | ( | const AgentPOMDP & | a | ) |
Copy constructor.
Definition at line 46 of file AgentPOMDP.cpp.
References _m_jb, PlanningUnitMADPDiscrete::GetNewJointBeliefInterface(), and AgentDecPOMDPDiscrete::GetPU().
AgentPOMDP::~AgentPOMDP | ( | ) |
|
virtual |
Return an individual action index based on a joint observation index.
Implements AgentSharedObservations.
Definition at line 62 of file AgentPOMDP.cpp.
References _m_jb, _m_prevJaI, _m_QPOMDP, _m_t, SimulationAgent::GetIndex(), PlanningUnitMADPDiscrete::GetNrJointActions(), AgentDecPOMDPDiscrete::GetPU(), QAV< P >::GetQ(), PlanningUnitMADPDiscrete::JointToIndividualActionIndices(), BeliefInterface::Print(), and JointBeliefInterface::Update().
|
virtual |
Will be called before an episode, to reinitialize the agent.
Implements SimulationAgent.
Definition at line 93 of file AgentPOMDP.cpp.
References _m_jb, _m_prevJaI, _m_t, PlanningUnitMADPDiscrete::GetNewJointBeliefFromISD(), and AgentDecPOMDPDiscrete::GetPU().
|
private |
Definition at line 52 of file AgentPOMDP.h.
Referenced by Act(), AgentPOMDP(), ResetEpisode(), and ~AgentPOMDP().
|
private |
Definition at line 54 of file AgentPOMDP.h.
Referenced by Act(), and ResetEpisode().
|
private |
Definition at line 48 of file AgentPOMDP.h.
Referenced by Act().
|
private |
Definition at line 50 of file AgentPOMDP.h.
Referenced by Act(), and ResetEpisode().