#include <periodic-call-entity.hh>
Public Member Functions | |
virtual void | display (std::ostream &os) const |
virtual const std::string & | getClassName (void) const |
PeriodicCallEntity (const std::string &name) | |
int & | trigerCall (int &dummy, const int &time) |
int & | trigerOnceCall (int &dummy, const int &time) |
virtual | ~PeriodicCallEntity (void) |
Public Member Functions inherited from dynamicgraph::Entity | |
std::ostream & | displaySignalList (std::ostream &os) const |
Entity (const std::string &name) | |
const std::string & | getCommandList () const |
virtual std::string | getDocString () const |
LoggerVerbosity | getLoggerVerbosityLevel () |
LoggerVerbosity | getLoggerVerbosityLevel () |
const std::string & | getName () const |
command::Command * | getNewStyleCommand (const std::string &cmdName) |
CommandMap_t | getNewStyleCommandMap () |
SignalBase< int > & | getSignal (const std::string &signalName) |
const SignalBase< int > & | getSignal (const std::string &signalName) const |
SignalMap | getSignalMap () const |
double | getStreamPrintPeriod () |
double | getStreamPrintPeriod () |
double | getTimeSample () |
double | getTimeSample () |
bool | hasSignal (const std::string &signame) const |
Logger & | logger () |
Logger const & | logger () const |
Logger & | logger () |
Logger const & | logger () const |
void | sendMsg (const std::string &msg, MsgType t=MSG_TYPE_INFO, const std::string &lineId="") |
void | sendMsg (const std::string &msg, MsgType t=MSG_TYPE_INFO, const std::string &lineId="") |
void | setLoggerVerbosityLevel (LoggerVerbosity lv) |
void | setLoggerVerbosityLevel (LoggerVerbosity lv) |
bool | setStreamPrintPeriod (double t) |
bool | setStreamPrintPeriod (double t) |
bool | setTimeSample (double t) |
bool | setTimeSample (double t) |
virtual SignalBase< int > * | test () |
virtual void | test2 (SignalBase< int > *) |
virtual std::ostream & | writeCompletionList (std::ostream &os) const |
virtual std::ostream & | writeGraph (std::ostream &os) const |
virtual | ~Entity () |
Public Attributes | |
Signal< int, int > | triger |
Signal< int, int > | trigerOnce |
Static Public Attributes | |
static const std::string | CLASS_NAME |
Additional Inherited Members | |
Public Types inherited from dynamicgraph::Entity | |
typedef std::map< const std::string, command::Command *> | CommandMap_t |
typedef std::map< std::string, SignalBase< int > *> | SignalMap |
Protected Types inherited from dynamicgraph::sot::PeriodicCall | |
typedef std::map< std::string, SignalToCall > | SignalMapType |
Protected Member Functions inherited from dynamicgraph::Entity | |
void | addCommand (const std::string &name, command::Command *command) |
void | entityDeregistration () |
void | entityRegistration () |
void | signalDeregistration (const std::string &name) |
void | signalRegistration (const SignalArray< int > &signals) |
Protected Member Functions inherited from dynamicgraph::sot::PeriodicCall | |
void | addDownsampledSignal (const std::string &name, dynamicgraph::SignalBase< int > &sig, const unsigned int &downsamplingFactor) |
void | addDownsampledSignal (const std::string &sigpath, const unsigned int &downsamplingFactor) |
void | addSignal (const std::string &name, dynamicgraph::SignalBase< int > &sig) |
void | addSignal (const std::string &args) |
void | clear (void) |
void | display (std::ostream &os) const |
PeriodicCall (void) | |
void | rmSignal (const std::string &name) |
void | run (const int &t) |
void | runSignals (const int &t) |
virtual | ~PeriodicCall (void) |
Protected Attributes inherited from dynamicgraph::Entity | |
CommandMap_t | commandMap |
Logger | logger_ |
std::string | name |
SignalMap | signalMap |
Protected Attributes inherited from dynamicgraph::sot::PeriodicCall | |
int | innerTime |
SignalMapType | signalMap |
The entity remembers a stack of signal and command to be executed or refreshed at each iteration. The update is trigered by the triger signal. If the trigerOnce is called, the stacks are flushed after the execution.
Definition at line 56 of file periodic-call-entity.hh.
PeriodicCallEntity::PeriodicCallEntity | ( | const std::string & | name | ) |
Definition at line 30 of file periodic-call-entity.cpp.
|
inlinevirtual |
Definition at line 73 of file periodic-call-entity.hh.
|
virtual |
Reimplemented from dynamicgraph::Entity.
Definition at line 57 of file periodic-call-entity.cpp.
|
inlinevirtual |
Reimplemented from dynamicgraph::Entity.
Definition at line 61 of file periodic-call-entity.hh.
int & PeriodicCallEntity::trigerCall | ( | int & | dummy, |
const int & | time | ||
) |
Definition at line 43 of file periodic-call-entity.cpp.
int & PeriodicCallEntity::trigerOnceCall | ( | int & | dummy, |
const int & | time | ||
) |
Definition at line 47 of file periodic-call-entity.cpp.
|
static |
Definition at line 60 of file periodic-call-entity.hh.
Signal<int, int> dynamicgraph::sot::PeriodicCallEntity::triger |
Definition at line 63 of file periodic-call-entity.hh.
Signal<int, int> dynamicgraph::sot::PeriodicCallEntity::trigerOnce |
Definition at line 64 of file periodic-call-entity.hh.