MultiAgentDecisionProcess
Release 0.2.1
|
AgentBG represents an agent which uses a BG-based policy. More...
#include <AgentBG.h>
Public Member Functions | |
Index | Act (Index oI, Index prevJoI) |
AgentBG (const PlanningUnitDecPOMDPDiscrete &pu, Index id, QAV< PerseusBGPlanner > *QBG) | |
(default) Constructor | |
AgentBG (const AgentBG &a) | |
Copy constructor. | |
void | ResetEpisode () |
Will be called before an episode, to reinitialize the agent. | |
~AgentBG () | |
Destructor. | |
![]() | |
AgentDelayedSharedObservations (const PlanningUnitDecPOMDPDiscrete &pu, Index id) | |
(default) Constructor | |
AgentDelayedSharedObservations (const AgentDelayedSharedObservations &a) | |
Copy constructor. | |
~AgentDelayedSharedObservations () | |
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 Member Functions | |
Index | GetMaximizingActionIndex (const JointBeliefInterface &jb) const |
int | GetMaximizingBGIndex (const JointBeliefInterface &jb) const |
Private Attributes | |
std::vector< Index > | _m_aIs |
BayesianGameIdenticalPayoff * | _m_bgip |
Index | _m_jaIfirst |
JointPolicyPureVector * | _m_jpol |
std::vector< Index > | _m_oIs |
std::vector< Index > | _m_prevJaIs |
JointBeliefSparse | _m_prevJB |
std::vector< Index > | _m_prevJoIs |
QAV< PerseusBGPlanner > * | _m_QBG |
size_t | _m_t |
AgentBG::AgentBG | ( | const PlanningUnitDecPOMDPDiscrete & | pu, |
Index | id, | ||
QAV< PerseusBGPlanner > * | QBG | ||
) |
(default) Constructor
Definition at line 40 of file AgentBG.cpp.
References _m_bgip, _m_jpol, SimulationAgent::GetIndex(), MultiAgentDecisionProcessDiscreteInterface::GetNrActions(), PlanningUnitMADPDiscrete::GetNrAgents(), PlanningUnitDecPOMDPDiscrete::GetReferred(), and BayesianGameIdenticalPayoff::SoftPrint().
AgentBG::AgentBG | ( | const AgentBG & | a | ) |
AgentBG::~AgentBG | ( | ) |
|
virtual |
Implements AgentDelayedSharedObservations.
Definition at line 78 of file AgentBG.cpp.
References _m_aIs, _m_jaIfirst, _m_jpol, _m_oIs, _m_prevJB, _m_prevJoIs, _m_t, JointPolicyPureVector::GetActionIndex(), SimulationAgent::GetIndex(), JointPolicyPureVector::GetJointActionIndex(), GetMaximizingActionIndex(), GetMaximizingBGIndex(), PlanningUnitMADPDiscrete::GetNewJointBeliefFromISD(), AgentDecPOMDPDiscrete::GetPU(), PlanningUnitMADPDiscrete::JointToIndividualActionIndices(), JointPolicyPureVector::SetIndex(), and JointBeliefSparse::Update().
|
private |
Definition at line 196 of file AgentBG.cpp.
References _m_QBG, PlanningUnitMADPDiscrete::GetNrJointActions(), AgentDecPOMDPDiscrete::GetPU(), and QAV< P >::GetQ().
Referenced by Act().
|
private |
Definition at line 174 of file AgentBG.cpp.
References _m_QBG, SimulationAgent::GetIndex(), PlanningUnitMADPDiscrete::GetNrJointActions(), AgentDecPOMDPDiscrete::GetPU(), QAV< P >::GetQ(), and BeliefInterface::SoftPrint().
Referenced by Act().
|
virtual |
Will be called before an episode, to reinitialize the agent.
Implements SimulationAgent.
Definition at line 161 of file AgentBG.cpp.
References _m_aIs, _m_oIs, _m_prevJaIs, _m_prevJB, _m_prevJoIs, _m_t, BeliefInterface::Get(), PlanningUnitMADPDiscrete::GetNewJointBeliefFromISD(), AgentDecPOMDPDiscrete::GetPU(), and BeliefSparse::Set().
|
private |
Definition at line 59 of file AgentBG.h.
Referenced by Act(), and ResetEpisode().
|
private |
Definition at line 55 of file AgentBG.h.
Referenced by AgentBG(), and ~AgentBG().
|
private |
Definition at line 57 of file AgentBG.h.
Referenced by Act(), AgentBG(), and ~AgentBG().
|
private |
Definition at line 59 of file AgentBG.h.
Referenced by Act(), and ResetEpisode().
|
private |
Definition at line 59 of file AgentBG.h.
Referenced by ResetEpisode().
|
private |
Definition at line 53 of file AgentBG.h.
Referenced by Act(), and ResetEpisode().
|
private |
Definition at line 59 of file AgentBG.h.
Referenced by Act(), and ResetEpisode().
|
private |
Definition at line 49 of file AgentBG.h.
Referenced by GetMaximizingActionIndex(), and GetMaximizingBGIndex().
|
private |
Definition at line 51 of file AgentBG.h.
Referenced by Act(), and ResetEpisode().