#include <modeExecutor.h>
Public Member Functions | |
void | execute (Mode *mode) |
void | execute (cob_light::LightMode requestMode) |
int | getExecutingMode () |
int | getExecutingPriority () |
ModeExecutor (IColorO *colorO) | |
void | resume () |
void | setDefaultPriority (int priority) |
void | stop () |
~ModeExecutor () | |
Private Member Functions | |
bool | isStopRequested () |
void | run () |
Private Attributes | |
Mode * | _activeMode |
IColorO * | _colorO |
boost::mutex | _mutex |
bool | _stopRequested |
boost::shared_ptr< boost::thread > | _thread_ptr |
int | default_priority |
Definition at line 64 of file modeExecutor.h.
ModeExecutor::ModeExecutor | ( | IColorO * | colorO | ) |
Definition at line 58 of file modeExecutor.cpp.
Definition at line 65 of file modeExecutor.cpp.
void ModeExecutor::execute | ( | Mode * | mode | ) |
Definition at line 78 of file modeExecutor.cpp.
void ModeExecutor::execute | ( | cob_light::LightMode | requestMode | ) |
Definition at line 70 of file modeExecutor.cpp.
int ModeExecutor::getExecutingMode | ( | ) |
Definition at line 164 of file modeExecutor.cpp.
Definition at line 169 of file modeExecutor.cpp.
bool ModeExecutor::isStopRequested | ( | ) | [private] |
Definition at line 155 of file modeExecutor.cpp.
void ModeExecutor::resume | ( | ) |
void ModeExecutor::run | ( | ) | [private] |
Definition at line 109 of file modeExecutor.cpp.
void ModeExecutor::setDefaultPriority | ( | int | priority | ) |
Definition at line 177 of file modeExecutor.cpp.
void ModeExecutor::stop | ( | ) |
Definition at line 140 of file modeExecutor.cpp.
Mode* ModeExecutor::_activeMode [private] |
Definition at line 88 of file modeExecutor.h.
IColorO* ModeExecutor::_colorO [private] |
Definition at line 86 of file modeExecutor.h.
boost::mutex ModeExecutor::_mutex [private] |
Definition at line 92 of file modeExecutor.h.
bool ModeExecutor::_stopRequested [private] |
Definition at line 90 of file modeExecutor.h.
boost::shared_ptr<boost::thread> ModeExecutor::_thread_ptr [private] |
Definition at line 91 of file modeExecutor.h.
int ModeExecutor::default_priority [private] |
Definition at line 94 of file modeExecutor.h.