A PowerMeterServiceWorker controls a PowerMeterDevice.
More...
#include <PowerMeterServiceWorker.hpp>
|
| PowerMeterServiceWorker (const Nice::JointPtr &_config, PowerMeterDeviceSet devices) |
|
virtual | ~PowerMeterServiceWorker () |
|
virtual void | init () |
|
virtual void | deinit () |
|
virtual void | activate () |
|
virtual void | deactivate () |
|
virtual void | work () |
|
virtual void | idleOnline () |
|
virtual void | terminate () |
|
| PowerMeterServiceWorker (const Nice::JointPtr &_config, PowerMeterDeviceSet devices) |
|
virtual | ~PowerMeterServiceWorker () |
|
virtual void | init () |
|
virtual void | deinit () |
|
virtual void | activate () |
|
virtual void | deactivate () |
|
virtual void | work () |
|
virtual void | idleOnline () |
|
virtual void | terminate () |
|
const Nice::JointPtr & | config () |
|
Nice::JointPtr | cfg () |
|
Nice::JointPtr | var () |
|
virtual const std::string & | name () |
|
virtual WorkerThreadPtr | worker () |
|
virtual Nice::Monitor & | monitor () |
|
virtual void | lock () |
|
virtual void | unlock () |
|
bool | stateIsSettled () |
|
bool | stateHasChanged () |
|
void | changeState (Basda::ServiceState _state) |
| change state to a new state If the state is the current state, or a negative state, do nothing. Otherwise change the "next" state in the state machine and notify all threads. More...
|
|
bool | tryChangeState (Basda::ServiceState _state, const Nice::Time &_timeout=Nice::Time::seconds(0.0)) |
| change state to a new state More...
|
|
void | waitForState (Basda::ServiceState _state) |
| wait (indefinitely) until the worker has reached a spcifici state More...
|
|
bool | timedWaitForState (Basda::ServiceState _state, const Nice::Time &_timeout) |
| wait (indefinitely) until the worker has reached a specific state More...
|
|
bool | changeStateOnlyFromTo (Basda::ServiceState _from, Basda::ServiceState _to) |
| wait (indefinitely) until the worker has reached a spcifici state More...
|
|
Basda::ServiceState | state () |
|
Basda::ServiceState | stateNow () |
|
Basda::ServiceState | stateNext () |
|
Basda::ServiceState | stateLast () |
|
bool | isTransit () |
|
bool | isTerminated () |
|
const Nice::JointPtr & | config () |
|
Nice::JointPtr | cfg () |
|
Nice::JointPtr | var () |
|
virtual const std::string & | name () |
|
virtual WorkerThreadPtr | worker () |
|
virtual Nice::Monitor & | monitor () |
|
virtual void | lock () |
|
virtual void | unlock () |
|
bool | stateIsSettled () |
|
bool | stateHasChanged () |
|
void | changeState (Basda::ServiceState _state) |
|
bool | tryChangeState (Basda::ServiceState _state, const Nice::Time &_timeout=Nice::Time::seconds(0.0)) |
|
void | waitForState (Basda::ServiceState _state) |
|
bool | timedWaitForState (Basda::ServiceState _state, const Nice::Time &_timeout) |
|
bool | changeStateOnlyFromTo (Basda::ServiceState _from, Basda::ServiceState _to) |
|
Basda::ServiceState | state () |
|
Basda::ServiceState | stateNow () |
|
Basda::ServiceState | stateNext () |
|
Basda::ServiceState | stateLast () |
|
bool | isTransit () |
|
bool | isTerminated () |
|
A PowerMeterServiceWorker controls a PowerMeterDevice.
◆ AsyncPowerMeterDeviceList [1/2]
◆ AsyncPowerMeterDeviceList [2/2]
◆ PowerMeterDeviceSet [1/2]
◆ PowerMeterDeviceSet [2/2]
◆ PowerMeterServiceWorker() [1/2]
- Precondition
- container of devices must not be empty
◆ ~PowerMeterServiceWorker() [1/2]
basda::PowerMeterServiceWorker::~PowerMeterServiceWorker |
( |
| ) |
|
|
virtual |
◆ PowerMeterServiceWorker() [2/2]
- Precondition
- container of devices must not be empty
◆ ~PowerMeterServiceWorker() [2/2]
virtual basda::PowerMeterServiceWorker::~PowerMeterServiceWorker |
( |
| ) |
|
|
virtual |
◆ activate() [1/2]
void basda::PowerMeterServiceWorker::activate |
( |
| ) |
|
|
virtual |
◆ activate() [2/2]
virtual void basda::PowerMeterServiceWorker::activate |
( |
| ) |
|
|
virtual |
◆ deactivate() [1/2]
void basda::PowerMeterServiceWorker::deactivate |
( |
| ) |
|
|
virtual |
◆ deactivate() [2/2]
virtual void basda::PowerMeterServiceWorker::deactivate |
( |
| ) |
|
|
virtual |
◆ deinit() [1/2]
virtual void basda::PowerMeterServiceWorker::deinit |
( |
| ) |
|
|
virtual |
◆ deinit() [2/2]
void basda::PowerMeterServiceWorker::deinit |
( |
| ) |
|
|
virtual |
◆ getWorkInterval() [1/2]
Nice::Time basda::PowerMeterServiceWorker::getWorkInterval |
( |
| ) |
|
|
protected |
◆ getWorkInterval() [2/2]
Nice::Time basda::PowerMeterServiceWorker::getWorkInterval |
( |
| ) |
|
|
protected |
◆ getWorkIntervalPropertyName() [1/2]
std::string basda::PowerMeterServiceWorker::getWorkIntervalPropertyName |
( |
| ) |
const |
|
private |
◆ getWorkIntervalPropertyName() [2/2]
std::string basda::PowerMeterServiceWorker::getWorkIntervalPropertyName |
( |
| ) |
const |
|
private |
◆ idleOnline() [1/2]
virtual void basda::PowerMeterServiceWorker::idleOnline |
( |
| ) |
|
|
virtual |
◆ idleOnline() [2/2]
void basda::PowerMeterServiceWorker::idleOnline |
( |
| ) |
|
|
virtual |
◆ init() [1/2]
void basda::PowerMeterServiceWorker::init |
( |
| ) |
|
|
virtual |
◆ init() [2/2]
virtual void basda::PowerMeterServiceWorker::init |
( |
| ) |
|
|
virtual |
◆ insertWorkIntervalPropertyIntoTreeIfAny() [1/2]
void basda::PowerMeterServiceWorker::insertWorkIntervalPropertyIntoTreeIfAny |
( |
| ) |
|
|
private |
◆ insertWorkIntervalPropertyIntoTreeIfAny() [2/2]
void basda::PowerMeterServiceWorker::insertWorkIntervalPropertyIntoTreeIfAny |
( |
| ) |
|
|
private |
◆ terminate() [1/2]
void basda::PowerMeterServiceWorker::terminate |
( |
| ) |
|
|
virtual |
◆ terminate() [2/2]
virtual void basda::PowerMeterServiceWorker::terminate |
( |
| ) |
|
|
virtual |
◆ waitForNewStateForAtMost() [1/2]
virtual void basda::PowerMeterServiceWorker::waitForNewStateForAtMost |
( |
const Nice::Time & |
workInterval | ) |
|
|
protectedvirtual |
◆ waitForNewStateForAtMost() [2/2]
void basda::PowerMeterServiceWorker::waitForNewStateForAtMost |
( |
const Nice::Time & |
workInterval | ) |
|
|
protectedvirtual |
◆ work() [1/2]
void basda::PowerMeterServiceWorker::work |
( |
| ) |
|
|
virtual |
◆ work() [2/2]
virtual void basda::PowerMeterServiceWorker::work |
( |
| ) |
|
|
virtual |
◆ asyncDevices_
The documentation for this class was generated from the following files: