#include <modeExecutor.h>
Public Member Functions | |
uint64_t | execute (boost::shared_ptr< Mode > mode) |
uint64_t | execute (cob_light::LightMode requestMode) |
int | getExecutingMode () |
int | getExecutingPriority () |
uint64_t | getExecutingUId () |
ModeExecutor (IColorO *colorO) | |
void | pause () |
void | resume () |
void | setDefaultPriority (int priority) |
void | stop () |
bool | stop (uint64_t uId) |
~ModeExecutor () | |
Private Member Functions | |
void | onColorSetReceived (color::rgba color) |
void | onModeFinishedReceived (int prio) |
Private Attributes | |
color::rgba | _activeColor |
boost::shared_ptr< Mode > | _activeMode |
IColorO * | _colorO |
std::map< int, boost::shared_ptr< Mode > , std::greater< int > > | _mapActiveModes |
bool | _stopRequested |
int | default_priority |
Definition at line 28 of file modeExecutor.h.
ModeExecutor::ModeExecutor | ( | IColorO * | colorO | ) |
Definition at line 21 of file modeExecutor.cpp.
Definition at line 28 of file modeExecutor.cpp.
uint64_t ModeExecutor::execute | ( | boost::shared_ptr< Mode > | mode | ) |
Definition at line 42 of file modeExecutor.cpp.
uint64_t ModeExecutor::execute | ( | cob_light::LightMode | requestMode | ) |
Definition at line 32 of file modeExecutor.cpp.
int ModeExecutor::getExecutingMode | ( | ) |
Definition at line 174 of file modeExecutor.cpp.
Definition at line 182 of file modeExecutor.cpp.
uint64_t ModeExecutor::getExecutingUId | ( | ) |
Definition at line 190 of file modeExecutor.cpp.
void ModeExecutor::onColorSetReceived | ( | color::rgba | color | ) | [private] |
Definition at line 169 of file modeExecutor.cpp.
void ModeExecutor::onModeFinishedReceived | ( | int | prio | ) | [private] |
Definition at line 147 of file modeExecutor.cpp.
void ModeExecutor::pause | ( | ) |
Definition at line 88 of file modeExecutor.cpp.
void ModeExecutor::resume | ( | ) |
Definition at line 96 of file modeExecutor.cpp.
void ModeExecutor::setDefaultPriority | ( | int | priority | ) |
Definition at line 198 of file modeExecutor.cpp.
void ModeExecutor::stop | ( | ) |
Definition at line 102 of file modeExecutor.cpp.
bool ModeExecutor::stop | ( | uint64_t | uId | ) |
Definition at line 115 of file modeExecutor.cpp.
color::rgba ModeExecutor::_activeColor [private] |
Definition at line 53 of file modeExecutor.h.
boost::shared_ptr<Mode> ModeExecutor::_activeMode [private] |
Definition at line 51 of file modeExecutor.h.
IColorO* ModeExecutor::_colorO [private] |
Definition at line 49 of file modeExecutor.h.
std::map<int, boost::shared_ptr<Mode>, std::greater<int> > ModeExecutor::_mapActiveModes [private] |
Definition at line 52 of file modeExecutor.h.
bool ModeExecutor::_stopRequested [private] |
Definition at line 55 of file modeExecutor.h.
int ModeExecutor::default_priority [private] |
Definition at line 56 of file modeExecutor.h.