MultiAgentDecisionProcess
|
AgentRandom represents an agent which chooses action uniformly at random. More...
#include <AgentRandom.h>
Public Member Functions | |
Index | Act () |
Returns an individual action uniformly at random. More... | |
Index | Act (Index joI) |
Return an individual action index based on an individual observation index. More... | |
Index | Act (Index sI, Index joI, double reward) |
Return an individual action based on state, last joint observation and reward. More... | |
Index | ActFirstStage () |
Return an individual action index for the first stage. More... | |
AgentRandom (const PlanningUnitDecPOMDPDiscrete *pu, Index id) | |
(default) Constructor More... | |
AgentRandom (const AgentRandom &a) | |
Copy constructor. More... | |
void | ResetEpisode () |
Will be called before an episode, to reinitialize the agent. More... | |
~AgentRandom () | |
Destructor. More... | |
Public Member Functions inherited from AgentFullyObservable | |
AgentFullyObservable (const PlanningUnitDecPOMDPDiscrete *pu, Index id) | |
(default) Constructor More... | |
AgentFullyObservable (const AgentFullyObservable &a) | |
Copy constructor. More... | |
~AgentFullyObservable () | |
Destructor. More... | |
Public Member Functions inherited from AgentDecPOMDPDiscrete | |
AgentDecPOMDPDiscrete (const PlanningUnitDecPOMDPDiscrete *pu, Index id) | |
(default) Constructor More... | |
AgentDecPOMDPDiscrete (const AgentDecPOMDPDiscrete &a) | |
Copy constructor. More... | |
const PlanningUnitDecPOMDPDiscrete * | GetPU () const |
Public Member Functions inherited from SimulationAgent | |
virtual Index | GetIndex () const |
Retrieves the index of this agent. More... | |
virtual bool | GetVerbose () const |
If true, the agent will report more. More... | |
void | Print () const |
Print out some information about this agent. More... | |
virtual void | SetIndex (Index id) |
Sets the index of this agent. More... | |
virtual void | SetVerbose (bool verbose) |
Set whether this agent should be verbose. More... | |
SimulationAgent (Index id, bool verbose=false) | |
(default) Constructor More... | |
virtual std::string | SoftPrint () const |
Return some information about this agent. More... | |
virtual | ~SimulationAgent () |
Destructor. More... | |
Public Member Functions inherited from AgentLocalObservations | |
AgentLocalObservations (const PlanningUnitDecPOMDPDiscrete *pu, Index id) | |
(default) Constructor More... | |
AgentLocalObservations (const AgentLocalObservations &a) | |
Copy constructor. More... | |
~AgentLocalObservations () | |
Destructor. More... | |
AgentRandom represents an agent which chooses action uniformly at random.
AgentRandom::AgentRandom | ( | const PlanningUnitDecPOMDPDiscrete * | pu, |
Index | id | ||
) |
(default) Constructor
AgentRandom::AgentRandom | ( | const AgentRandom & | a | ) |
Copy constructor.
AgentRandom::~AgentRandom | ( | ) |
Destructor.
Index AgentRandom::Act | ( | ) |
Returns an individual action uniformly at random.
References SimulationAgent::GetIndex(), PlanningUnitMADPDiscrete::GetNrActions(), and AgentDecPOMDPDiscrete::GetPU().
Referenced by Act(), and ActFirstStage().
Return an individual action index based on an individual observation index.
Implements AgentLocalObservations.
References Act().
Return an individual action based on state, last joint observation and reward.
Implements AgentFullyObservable.
References Act().
|
inlinevirtual |
Return an individual action index for the first stage.
Implements AgentLocalObservations.
References Act().
|
virtual |
Will be called before an episode, to reinitialize the agent.
Implements SimulationAgent.