PhyStar  v0.0.0 thu24
smart::Actor Class Referenceabstract

#include <Actor.hpp>

Inheritance diagram for smart::Actor:

Public Member Functions

virtual int dim () const =0
 get the dimension of the state (the size of the pfield.state) More...
 
virtual void takeAction (dmdyn::ParticleField< 2 > &pfield, const dmdyn::ParticleModel *pmodel, bool inaive)=0
 taking actions More...
 
virtual void takeAction (dmdyn::ParticleField< 3 > &pfield, const dmdyn::ParticleModel *pmodel, bool inaive)=0
 
virtual void initialize (tml::table *config, tml::table *subconfig)=0
 initialize the actor More...
 
virtual std::vector< int > num () const =0
 return the number of possible action of each dimension. return zero if the action is continueous. More...
 
virtual std::string name ()=0
 the name of the actor More...
 

Member Function Documentation

◆ dim()

virtual int smart::Actor::dim ( ) const
pure virtual

get the dimension of the state (the size of the pfield.state)

Returns
int dimension

Implemented in smart::OrientationActor.

◆ initialize()

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

initialize the actor

Parameters
configtoml node

Implemented in smart::OrientationActor.

◆ name()

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

the name of the actor

Returns
std::string name

Implemented in smart::OrientationActor.

◆ num()

virtual std::vector<int> smart::Actor::num ( ) const
pure virtual

return the number of possible action of each dimension. return zero if the action is continueous.

Returns
std::vector<int>

Implemented in smart::OrientationActor.

◆ takeAction() [1/2]

virtual void smart::Actor::takeAction ( dmdyn::ParticleField< 2 > &  pfield,
const dmdyn::ParticleModel pmodel,
bool  inaive 
)
pure virtual

taking actions

Parameters
pfieldparticle field
pmodelparticle model
inaivewhether the action is in naive mode (preset)

Implemented in smart::OrientationActor.

◆ takeAction() [2/2]

virtual void smart::Actor::takeAction ( dmdyn::ParticleField< 3 > &  pfield,
const dmdyn::ParticleModel pmodel,
bool  inaive 
)
pure virtual

Implemented in smart::OrientationActor.


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