Cheetah Software  1.0
PrintTaskStatus Class Reference

#include <PeriodicTask.h>

+ Inheritance diagram for PrintTaskStatus:
+ Collaboration diagram for PrintTaskStatus:

Public Member Functions

 PrintTaskStatus (PeriodicTaskManager *tm, float period)
 
void run () override
 
void init () override
 
void cleanup () override
 
- Public Member Functions inherited from PeriodicTask
 PeriodicTask (PeriodicTaskManager *taskManager, float period, std::string name)
 
void start ()
 
void stop ()
 
void printStatus ()
 
void clearMax ()
 
bool isSlow ()
 
virtual ~PeriodicTask ()
 
float getPeriod ()
 
float getRuntime ()
 
float getMaxPeriod ()
 
float getMaxRuntime ()
 

Private Attributes

PeriodicTaskManager_tm
 

Detailed Description

A periodic task for printing the status of all tasks in the task manager

Definition at line 91 of file PeriodicTask.h.

Constructor & Destructor Documentation

PrintTaskStatus::PrintTaskStatus ( PeriodicTaskManager tm,
float  period 
)
inline

Definition at line 93 of file PeriodicTask.h.

94  : PeriodicTask(tm, period, "print-tasks"), _tm(tm) {}
PeriodicTask(PeriodicTaskManager *taskManager, float period, std::string name)
PeriodicTaskManager * _tm
Definition: PeriodicTask.h:102

Member Function Documentation

void PrintTaskStatus::cleanup ( )
inlineoverridevirtual

Implements PeriodicTask.

Definition at line 99 of file PeriodicTask.h.

99 {}
void PrintTaskStatus::init ( )
inlineoverridevirtual

Implements PeriodicTask.

Definition at line 97 of file PeriodicTask.h.

97 {}
void PrintTaskStatus::run ( )
inlineoverridevirtual

Implements PeriodicTask.

Definition at line 95 of file PeriodicTask.h.

95 { _tm->printStatus(); }
PeriodicTaskManager * _tm
Definition: PeriodicTask.h:102

Member Data Documentation

PeriodicTaskManager* PrintTaskStatus::_tm
private

Definition at line 102 of file PeriodicTask.h.


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