PhyStar  v0.0.0 thu24
smart::Agent Class Referenceabstract

#include <Agent.hpp>

Inheritance diagram for smart::Agent:

Public Member Functions

virtual std::string name ()=0
 return the name of the agent More...
 
virtual void decideAction (dmdyn::ParticleField< 2 > &pfield, const dmdyn::ParticleModel *pmodel, bool iexplore)=0
 decide the action from the state according to a certain strategy More...
 
virtual void decideAction (dmdyn::ParticleField< 3 > &pfield, const dmdyn::ParticleModel *pmodel, bool iexplore)=0
 
virtual void initialize (tml::table *config, tml::table *subconfig)=0
 

Member Function Documentation

◆ decideAction() [1/2]

virtual void smart::Agent::decideAction ( dmdyn::ParticleField< 2 > &  pfield,
const dmdyn::ParticleModel pmodel,
bool  iexplore 
)
pure virtual

decide the action from the state according to a certain strategy

Parameters
pfieldparticle field
pmodelparticle model
iexplorewhether the action decision explores random action that is exceptional to the strategy

Implemented in smart::OptimalSurfingAgent.

◆ decideAction() [2/2]

virtual void smart::Agent::decideAction ( dmdyn::ParticleField< 3 > &  pfield,
const dmdyn::ParticleModel pmodel,
bool  iexplore 
)
pure virtual

Implemented in smart::OptimalSurfingAgent.

◆ initialize()

virtual void smart::Agent::initialize ( tml::table *  config,
tml::table *  subconfig 
)
pure virtual

Implemented in smart::OptimalSurfingAgent.

◆ name()

virtual std::string smart::Agent::name ( )
pure virtual

return the name of the agent

Returns
std::string

Implemented in smart::OptimalSurfingAgent.


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