Public Member Functions | Private Member Functions | Private Attributes | List of all members
ModeExecutor Class Reference

#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
 

Detailed Description

Definition at line 28 of file modeExecutor.h.

Constructor & Destructor Documentation

◆ ModeExecutor()

ModeExecutor::ModeExecutor ( IColorO colorO)

Definition at line 21 of file modeExecutor.cpp.

◆ ~ModeExecutor()

ModeExecutor::~ModeExecutor ( )

Definition at line 28 of file modeExecutor.cpp.

Member Function Documentation

◆ execute() [1/2]

uint64_t ModeExecutor::execute ( boost::shared_ptr< Mode mode)

Definition at line 42 of file modeExecutor.cpp.

◆ execute() [2/2]

uint64_t ModeExecutor::execute ( cob_light::LightMode  requestMode)

Definition at line 32 of file modeExecutor.cpp.

◆ getExecutingMode()

int ModeExecutor::getExecutingMode ( )

Definition at line 174 of file modeExecutor.cpp.

◆ getExecutingPriority()

int ModeExecutor::getExecutingPriority ( )

Definition at line 182 of file modeExecutor.cpp.

◆ getExecutingUId()

uint64_t ModeExecutor::getExecutingUId ( )

Definition at line 190 of file modeExecutor.cpp.

◆ onColorSetReceived()

void ModeExecutor::onColorSetReceived ( color::rgba  color)
private

Definition at line 169 of file modeExecutor.cpp.

◆ onModeFinishedReceived()

void ModeExecutor::onModeFinishedReceived ( int  prio)
private

Definition at line 147 of file modeExecutor.cpp.

◆ pause()

void ModeExecutor::pause ( )

Definition at line 88 of file modeExecutor.cpp.

◆ resume()

void ModeExecutor::resume ( )

Definition at line 96 of file modeExecutor.cpp.

◆ setDefaultPriority()

void ModeExecutor::setDefaultPriority ( int  priority)

Definition at line 198 of file modeExecutor.cpp.

◆ stop() [1/2]

void ModeExecutor::stop ( )

Definition at line 102 of file modeExecutor.cpp.

◆ stop() [2/2]

bool ModeExecutor::stop ( uint64_t  uId)

Definition at line 115 of file modeExecutor.cpp.

Member Data Documentation

◆ _activeColor

color::rgba ModeExecutor::_activeColor
private

Definition at line 53 of file modeExecutor.h.

◆ _activeMode

boost::shared_ptr<Mode> ModeExecutor::_activeMode
private

Definition at line 51 of file modeExecutor.h.

◆ _colorO

IColorO* ModeExecutor::_colorO
private

Definition at line 49 of file modeExecutor.h.

◆ _mapActiveModes

std::map<int, boost::shared_ptr<Mode>, std::greater<int> > ModeExecutor::_mapActiveModes
private

Definition at line 52 of file modeExecutor.h.

◆ _stopRequested

bool ModeExecutor::_stopRequested
private

Definition at line 55 of file modeExecutor.h.

◆ default_priority

int ModeExecutor::default_priority
private

Definition at line 56 of file modeExecutor.h.


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


cob_light
Author(s): Benjamin Maidel
autogenerated on Thu Nov 17 2022 03:17:28