TwiceAsNice  2019-02-18
Public Types | Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor Class Reference

#include <DeviceSimulatorWavecommMonitor.h>

Inheritance diagram for Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor:
Inheritance graph
Collaboration diagram for Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor:
Collaboration graph

Public Types

typedef ::Basda::DeviceAsync DeviceAsync
 
typedef ::Basda::DeviceAsync DeviceAsync
 

Public Member Functions

 DeviceSimulatorWavecommMonitor (const Nice::JointPtr &config)
 constructor More...
 
virtual ~DeviceSimulatorWavecommMonitor ()
 virtual destructor More...
 
virtual void open (void)
 function to open the connection to the device. More...
 
virtual void close (void)
 function to close the connection to the device. More...
 
virtual void reset (DeviceAsync &=::Basda::Device::s_async)
 function to reset the device. More...
 
virtual void init (DeviceAsync &=Basda::Device::s_async)
 function to init the device. More...
 
virtual void deinit (DeviceAsync &=::Basda::Device::s_async)
 function to deinit the device. More...
 
virtual void activate (DeviceAsync &=::Basda::Device::s_async)
 activate the device More...
 
virtual void deactivate (DeviceAsync &=::Basda::Device::s_async)
 deactivate the device More...
 
virtual void version ()
 return the library version More...
 
virtual void updateProperties ()
 Update the properties of the device. More...
 
virtual bool isReachable ()
 Returns true if the device is reachable. More...
 
virtual Nice::JointPtrVectordescription (void)
 function to read the description More...
 
 DeviceSimulatorWavecommMonitor (const Nice::JointPtr &config)
 constructor More...
 
virtual ~DeviceSimulatorWavecommMonitor ()
 virtual destructor More...
 
virtual void open (void)
 function to open the connection to the device. More...
 
virtual void close (void)
 function to close the connection to the device. More...
 
virtual void reset (DeviceAsync &=::Basda::Device::s_async)
 function to reset the device. More...
 
virtual void init (DeviceAsync &=Basda::Device::s_async)
 function to init the device. More...
 
virtual void deinit (DeviceAsync &=::Basda::Device::s_async)
 function to deinit the device. More...
 
virtual void activate (DeviceAsync &=::Basda::Device::s_async)
 activate the device More...
 
virtual void deactivate (DeviceAsync &=::Basda::Device::s_async)
 deactivate the device More...
 
virtual void version ()
 return the library version More...
 
virtual void updateProperties ()
 Update the properties of the device. More...
 
virtual bool isReachable ()
 Returns true if the device is reachable. More...
 
virtual Nice::JointPtrVectordescription (void)
 function to read the description More...
 
- Public Member Functions inherited from Basda::Tempo::TempoDevice
 TempoDevice (const Nice::JointPtr &config)
 
virtual ~TempoDevice ()
 
 TempoDevice (const Nice::JointPtr &config)
 
virtual ~TempoDevice ()
 
 TempoDevice (const Nice::JointPtr &config)
 
virtual ~TempoDevice ()
 
- Public Member Functions inherited from Basda::Device
 Device (const Nice::JointPtr &_config)
 constructor. This is an elementary (lazy) action which stores the name and gets configuration. More...
 
virtual ~Device ()
 destructor Does nothing More...
 
virtual void setConfig (const Nice::JointPtr &_config)
 init with config tree ptr More...
 
Nice::JointPtrconfig ()
 retrieve the property tree More...
 
std::string & name ()
 retrieve the name set at ctor time. More...
 
 Device (const Nice::JointPtr &_config)
 constructor. This is an elementary (lazy) action which stores the name and gets configuration. More...
 
virtual ~Device ()
 destructor Does nothing More...
 
virtual void setConfig (const Nice::JointPtr &_config)
 init with config tree ptr More...
 
Nice::JointPtrconfig ()
 retrieve the property tree More...
 
std::string & name ()
 retrieve the name set at ctor time. More...
 

Protected Attributes

Nice::JointPtrVector partNodes_
 vector containing the children More...
 
- Protected Attributes inherited from Basda::Device
Nice::JointPtr m_config
 
Nice::JointPtr m_cfg
 
Nice::JointPtr m_var
 
std::string m_name
 

Private Member Functions

void setAsReachable (const bool state)
 
void setPropertiesAsUnknown ()
 
void processSensorData (Nice::PropertyPtr property, int channel)
 
void setGlobalAlarm ()
 
void handleErrors (const std::string message)
 
void setAsReachable (const bool state)
 
void setPropertiesAsUnknown ()
 
void processSensorData (Nice::PropertyPtr property, int channel)
 
void setGlobalAlarm ()
 
void handleErrors (const std::string message)
 

Private Attributes

unsigned short numberOfChannels_
 
IceUtil::RecMutex syncMutex_
 
bool isReachable_
 
bool isAlarmActivated
 
bool isErrorActivated
 

Additional Inherited Members

- Static Public Attributes inherited from Basda::Device
static DeviceAsyncImpl s_async
 

Member Typedef Documentation

◆ DeviceAsync [1/2]

◆ DeviceAsync [2/2]

Constructor & Destructor Documentation

◆ DeviceSimulatorWavecommMonitor() [1/2]

DeviceSimulatorWavecommMonitor::DeviceSimulatorWavecommMonitor ( const Nice::JointPtr config)

constructor

Parameters
configconfiguration tree

◆ ~DeviceSimulatorWavecommMonitor() [1/2]

DeviceSimulatorWavecommMonitor::~DeviceSimulatorWavecommMonitor ( )
virtual

virtual destructor

◆ DeviceSimulatorWavecommMonitor() [2/2]

Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::DeviceSimulatorWavecommMonitor ( const Nice::JointPtr config)

constructor

Parameters
configconfiguration tree

◆ ~DeviceSimulatorWavecommMonitor() [2/2]

virtual Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::~DeviceSimulatorWavecommMonitor ( )
virtual

virtual destructor

Member Function Documentation

◆ activate() [1/2]

virtual void Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::activate ( DeviceAsync = ::Basda::Device::s_async)
inlinevirtual

activate the device

Implements Basda::Device.

◆ activate() [2/2]

virtual void Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::activate ( DeviceAsync = ::Basda::Device::s_async)
inlinevirtual

activate the device

Implements Basda::Device.

◆ close() [1/2]

virtual void Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::close ( void  )
virtual

function to close the connection to the device.

Implements Basda::Device.

◆ close() [2/2]

void DeviceSimulatorWavecommMonitor::close ( void  )
virtual

function to close the connection to the device.

Implements Basda::Device.

◆ deactivate() [1/2]

virtual void Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::deactivate ( DeviceAsync = ::Basda::Device::s_async)
inlinevirtual

deactivate the device

Implements Basda::Device.

◆ deactivate() [2/2]

virtual void Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::deactivate ( DeviceAsync = ::Basda::Device::s_async)
inlinevirtual

deactivate the device

Implements Basda::Device.

◆ deinit() [1/2]

void DeviceSimulatorWavecommMonitor::deinit ( Basda::DeviceAsync _async = ::Basda::Device::s_async)
virtual

function to deinit the device.

Implements Basda::Device.

◆ deinit() [2/2]

virtual void Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::deinit ( DeviceAsync = ::Basda::Device::s_async)
virtual

function to deinit the device.

Implements Basda::Device.

◆ description() [1/2]

virtual Nice::JointPtrVector& Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::description ( void  )
inlinevirtual

function to read the description

Returns
vector containing all data

◆ description() [2/2]

virtual Nice::JointPtrVector& Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::description ( void  )
inlinevirtual

function to read the description

Returns
vector containing all data

◆ handleErrors() [1/2]

void Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::handleErrors ( const std::string  message)
private

◆ handleErrors() [2/2]

void DeviceSimulatorWavecommMonitor::handleErrors ( const std::string  message)
private

◆ init() [1/2]

virtual void Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::init ( DeviceAsync = Basda::Device::s_async)
virtual

function to init the device.

Implements Basda::Device.

◆ init() [2/2]

void DeviceSimulatorWavecommMonitor::init ( Basda::DeviceAsync _async = Basda::Device::s_async)
virtual

function to init the device.

Implements Basda::Device.

◆ isReachable() [1/2]

bool DeviceSimulatorWavecommMonitor::isReachable ( )
virtual

Returns true if the device is reachable.

Otherwise returns false.

Implements Basda::Tempo::TempoDevice.

◆ isReachable() [2/2]

virtual bool Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::isReachable ( )
virtual

Returns true if the device is reachable.

Otherwise returns false.

Implements Basda::Tempo::TempoDevice.

◆ open() [1/2]

void DeviceSimulatorWavecommMonitor::open ( void  )
virtual

function to open the connection to the device.

Implements Basda::Device.

◆ open() [2/2]

virtual void Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::open ( void  )
virtual

function to open the connection to the device.

Implements Basda::Device.

◆ processSensorData() [1/2]

void DeviceSimulatorWavecommMonitor::processSensorData ( Nice::PropertyPtr  property,
int  channel 
)
private

◆ processSensorData() [2/2]

void Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::processSensorData ( Nice::PropertyPtr  property,
int  channel 
)
private

◆ reset() [1/2]

virtual void Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::reset ( DeviceAsync = ::Basda::Device::s_async)
virtual

function to reset the device.

Implements Basda::Device.

◆ reset() [2/2]

void DeviceSimulatorWavecommMonitor::reset ( Basda::DeviceAsync _async = ::Basda::Device::s_async)
virtual

function to reset the device.

Implements Basda::Device.

◆ setAsReachable() [1/2]

void DeviceSimulatorWavecommMonitor::setAsReachable ( const bool  state)
private

◆ setAsReachable() [2/2]

void Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::setAsReachable ( const bool  state)
private

◆ setGlobalAlarm() [1/2]

void DeviceSimulatorWavecommMonitor::setGlobalAlarm ( )
private

◆ setGlobalAlarm() [2/2]

void Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::setGlobalAlarm ( )
private

◆ setPropertiesAsUnknown() [1/2]

void Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::setPropertiesAsUnknown ( )
private

◆ setPropertiesAsUnknown() [2/2]

void DeviceSimulatorWavecommMonitor::setPropertiesAsUnknown ( )
private

◆ updateProperties() [1/2]

virtual void Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::updateProperties ( )
virtual

Update the properties of the device.

Implements Basda::Tempo::TempoDevice.

◆ updateProperties() [2/2]

void DeviceSimulatorWavecommMonitor::updateProperties ( )
virtual

Update the properties of the device.

Implements Basda::Tempo::TempoDevice.

◆ version() [1/2]

virtual void Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::version ( )
virtual

return the library version

Implements Basda::Device.

◆ version() [2/2]

void DeviceSimulatorWavecommMonitor::version ( void  )
virtual

return the library version

Implements Basda::Device.

Member Data Documentation

◆ isAlarmActivated

bool Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::isAlarmActivated
private

◆ isErrorActivated

bool Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::isErrorActivated
private

◆ isReachable_

bool Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::isReachable_
private

◆ numberOfChannels_

unsigned short Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::numberOfChannels_
private

◆ partNodes_

Nice::JointPtrVector Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::partNodes_
protected

vector containing the children

◆ syncMutex_

IceUtil::RecMutex Basda::Tempo::wavecomm::DeviceSimulatorWavecommMonitor::syncMutex_
private

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