PhyStar  v0.0.0 thu24
smart::OrientationActor Class Reference

#include <OrientationActor.hpp>

Inheritance diagram for smart::OrientationActor:
Collaboration diagram for smart::OrientationActor:

Public Member Functions

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

Static Public Member Functions

static std::string _name ()
 

Public Attributes

int N_dim
 

Member Function Documentation

◆ _name()

static std::string smart::OrientationActor::_name ( )
inlinestatic
Here is the caller graph for this function:

◆ dim()

virtual int smart::OrientationActor::dim ( ) const
inlinevirtual

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

Returns
int dimension

Implements smart::Actor.

References N_dim.

◆ initialize()

virtual void smart::OrientationActor::initialize ( tml::table *  config,
tml::table *  subconfig 
)
inlinevirtual

initialize the actor

Parameters
configtoml node

Implements smart::Actor.

References N_dim.

◆ name()

virtual std::string smart::OrientationActor::name ( )
inlinevirtual

the name of the actor

Returns
std::string name

Implements smart::Actor.

References _name().

Here is the call graph for this function:

◆ num()

virtual std::vector<int> smart::OrientationActor::num ( ) const
inlinevirtual

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

Returns
std::vector<int>

Implements smart::Actor.

References N_dim.

◆ takeAction() [1/2]

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

taking actions

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

Implements smart::Actor.

References dmdyn::SmartData< N_dim >::action, blin::Norm2(), and dmdyn::ParticleField< N_dim >::pdata.

Here is the call graph for this function:

◆ takeAction() [2/2]

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

Member Data Documentation

◆ N_dim

int smart::OrientationActor::N_dim

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