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

#include <DeviceWavecommMonitor.h>

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

Classes

struct  PropertyValue
 

Public Types

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

Public Member Functions

 DeviceWavecommMonitor (const Nice::JointPtr &config)
 constructor More...
 
virtual ~DeviceWavecommMonitor ()
 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...
 
 DeviceWavecommMonitor (const Nice::JointPtr &config)
 constructor More...
 
virtual ~DeviceWavecommMonitor ()
 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 handleConnectionErrors (const std::string message)
 
void handleGlitches (const std::string message)
 
void computeDewPoint (std::vector< double > tempRefSensorsC, std::vector< double > humidityRefSensorsC)
 
void setDewPointAs (const bool valid)
 
void setAsReachable (const bool state)
 
void setPropertiesAsUnknown ()
 
void processSensorData (Nice::PropertyPtr property, int channel)
 
void setGlobalAlarm ()
 
void handleConnectionErrors (const std::string message)
 
void handleGlitches (const std::string message)
 
void computeDewPoint (std::vector< double > tempRefSensorsC, std::vector< double > humidityRefSensorsC)
 
void setDewPointAs (const bool valid)
 

Private Attributes

std::string conAddr_
 stores the address of the device currently connected to More...
 
unsigned short numberOfChannels_
 
IceUtil::RecMutex syncMutex_
 
WavecommThorPtr thor_
 
bool isReachable_
 
bool isAlarmActivated_
 
bool isErrorActivated_
 
unsigned numberGlitches_
 
unsigned toleranceGlitchNumber_
 
unsigned long reconnectionSleepInMicrosec_
 

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

◆ DeviceWavecommMonitor() [1/2]

DeviceWavecommMonitor::DeviceWavecommMonitor ( const Nice::JointPtr config)

constructor

Parameters
configconfiguration tree

◆ ~DeviceWavecommMonitor() [1/2]

DeviceWavecommMonitor::~DeviceWavecommMonitor ( )
virtual

virtual destructor

◆ DeviceWavecommMonitor() [2/2]

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

constructor

Parameters
configconfiguration tree

◆ ~DeviceWavecommMonitor() [2/2]

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

virtual destructor

Member Function Documentation

◆ activate() [1/2]

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

activate the device

Implements Basda::Device.

◆ activate() [2/2]

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

activate the device

Implements Basda::Device.

◆ close() [1/2]

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

function to close the connection to the device.

Implements Basda::Device.

◆ close() [2/2]

void DeviceWavecommMonitor::close ( void  )
virtual

function to close the connection to the device.

Implements Basda::Device.

◆ computeDewPoint() [1/2]

void Basda::Tempo::wavecomm::DeviceWavecommMonitor::computeDewPoint ( std::vector< double >  tempRefSensorsC,
std::vector< double >  humidityRefSensorsC 
)
private

◆ computeDewPoint() [2/2]

void DeviceWavecommMonitor::computeDewPoint ( std::vector< double >  tempRefSensorsC,
std::vector< double >  humidityRefSensorsC 
)
private

◆ deactivate() [1/2]

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

deactivate the device

Implements Basda::Device.

◆ deactivate() [2/2]

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

deactivate the device

Implements Basda::Device.

◆ deinit() [1/2]

void DeviceWavecommMonitor::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::DeviceWavecommMonitor::deinit ( DeviceAsync = ::Basda::Device::s_async)
virtual

function to deinit the device.

Implements Basda::Device.

◆ description() [1/2]

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

function to read the description

Returns
vector containing all data

◆ description() [2/2]

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

function to read the description

Returns
vector containing all data

◆ handleConnectionErrors() [1/2]

void Basda::Tempo::wavecomm::DeviceWavecommMonitor::handleConnectionErrors ( const std::string  message)
private

◆ handleConnectionErrors() [2/2]

void DeviceWavecommMonitor::handleConnectionErrors ( const std::string  message)
private

◆ handleGlitches() [1/2]

void DeviceWavecommMonitor::handleGlitches ( const std::string  message)
private

◆ handleGlitches() [2/2]

void Basda::Tempo::wavecomm::DeviceWavecommMonitor::handleGlitches ( const std::string  message)
private

◆ init() [1/2]

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

function to init the device.

Implements Basda::Device.

◆ init() [2/2]

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

function to init the device.

Implements Basda::Device.

◆ isReachable() [1/2]

bool DeviceWavecommMonitor::isReachable ( )
virtual

Returns true if the device is reachable.

Otherwise returns false.

Implements Basda::Tempo::TempoDevice.

◆ isReachable() [2/2]

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

Returns true if the device is reachable.

Otherwise returns false.

Implements Basda::Tempo::TempoDevice.

◆ open() [1/2]

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

function to open the connection to the device.

Implements Basda::Device.

◆ open() [2/2]

void DeviceWavecommMonitor::open ( void  )
virtual

function to open the connection to the device.

Implements Basda::Device.

◆ processSensorData() [1/2]

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

◆ processSensorData() [2/2]

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

◆ reset() [1/2]

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

function to reset the device.

Implements Basda::Device.

◆ reset() [2/2]

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

function to reset the device.

Implements Basda::Device.

◆ setAsReachable() [1/2]

void DeviceWavecommMonitor::setAsReachable ( const bool  state)
private

◆ setAsReachable() [2/2]

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

◆ setDewPointAs() [1/2]

void DeviceWavecommMonitor::setDewPointAs ( const bool  valid)
private

◆ setDewPointAs() [2/2]

void Basda::Tempo::wavecomm::DeviceWavecommMonitor::setDewPointAs ( const bool  valid)
private

◆ setGlobalAlarm() [1/2]

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

◆ setGlobalAlarm() [2/2]

void DeviceWavecommMonitor::setGlobalAlarm ( )
private

◆ setPropertiesAsUnknown() [1/2]

void DeviceWavecommMonitor::setPropertiesAsUnknown ( )
private

◆ setPropertiesAsUnknown() [2/2]

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

◆ updateProperties() [1/2]

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

Update the properties of the device.

Implements Basda::Tempo::TempoDevice.

◆ updateProperties() [2/2]

void DeviceWavecommMonitor::updateProperties ( )
virtual

Update the properties of the device.

Implements Basda::Tempo::TempoDevice.

◆ version() [1/2]

void DeviceWavecommMonitor::version ( void  )
virtual

return the library version

Implements Basda::Device.

◆ version() [2/2]

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

return the library version

Implements Basda::Device.

Member Data Documentation

◆ conAddr_

std::string Basda::Tempo::wavecomm::DeviceWavecommMonitor::conAddr_
private

stores the address of the device currently connected to

◆ isAlarmActivated_

bool Basda::Tempo::wavecomm::DeviceWavecommMonitor::isAlarmActivated_
private

◆ isErrorActivated_

bool Basda::Tempo::wavecomm::DeviceWavecommMonitor::isErrorActivated_
private

◆ isReachable_

bool Basda::Tempo::wavecomm::DeviceWavecommMonitor::isReachable_
private

◆ numberGlitches_

unsigned Basda::Tempo::wavecomm::DeviceWavecommMonitor::numberGlitches_
private

◆ numberOfChannels_

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

◆ partNodes_

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

vector containing the children

◆ reconnectionSleepInMicrosec_

unsigned long Basda::Tempo::wavecomm::DeviceWavecommMonitor::reconnectionSleepInMicrosec_
private

◆ syncMutex_

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

◆ thor_

WavecommThorPtr Basda::Tempo::wavecomm::DeviceWavecommMonitor::thor_
private

◆ toleranceGlitchNumber_

unsigned Basda::Tempo::wavecomm::DeviceWavecommMonitor::toleranceGlitchNumber_
private

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