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

#include <DeviceUei201Monitor.h>

Inheritance diagram for Basda::Tempo::uei::DeviceUei201Monitor:
Inheritance graph
Collaboration diagram for Basda::Tempo::uei::DeviceUei201Monitor:
Collaboration graph

Public Types

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

Public Member Functions

 DeviceUei201Monitor (const Nice::JointPtr &config)
 constructor More...
 
virtual ~DeviceUei201Monitor ()
 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...
 
 DeviceUei201Monitor (const Nice::JointPtr &config)
 constructor More...
 
virtual ~DeviceUei201Monitor ()
 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 setGlobalAlarm ()
 
double setPrecision (const double value, const int precision)
 
void setAsReachable (const bool state)
 
void setPropertiesAsUnknown ()
 
void setTemperatureProperty (int temp)
 
void handleErrors (const std::string message)
 
void processSensorValue (unsigned channel, std::string sensorDescription, double minOperational, double maxOperational, double minAlarm, double maxAlarm, double value, std::string unit)
 
void setGlobalAlarm ()
 
double setPrecision (const double value, const int precision)
 
void setAsReachable (const bool state)
 
void setPropertiesAsUnknown ()
 
void setTemperatureProperty (int temp)
 
void handleErrors (const std::string message)
 
void processSensorValue (unsigned channel, std::string sensorDescription, double minOperational, double maxOperational, double minAlarm, double maxAlarm, double value, std::string unit)
 

Private Attributes

std::string conAddr_
 stores the address of the device currently connected to More...
 
UeiDna201Ptr uei201_
 
unsigned short numberOfChannels_
 
unsigned short alarm_
 
unsigned short error_
 
std::map< std::string, double > channelGradient_
 Variables needed to store the curve of the sensor as y= m(x-x1) + y1. More...
 
std::map< std::string, double > channelX1_
 
std::map< std::string, double > channelY1_
 
std::map< std::string, unsigned short > channelNumber_
 
IceUtil::RecMutex syncMutex_
 
bool isReachable_
 

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

◆ DeviceUei201Monitor() [1/2]

DeviceUei201Monitor::DeviceUei201Monitor ( const Nice::JointPtr config)

constructor

Parameters
configconfiguration tree

◆ ~DeviceUei201Monitor() [1/2]

DeviceUei201Monitor::~DeviceUei201Monitor ( )
virtual

virtual destructor

◆ DeviceUei201Monitor() [2/2]

Basda::Tempo::uei::DeviceUei201Monitor::DeviceUei201Monitor ( const Nice::JointPtr config)

constructor

Parameters
configconfiguration tree

◆ ~DeviceUei201Monitor() [2/2]

virtual Basda::Tempo::uei::DeviceUei201Monitor::~DeviceUei201Monitor ( )
virtual

virtual destructor

Member Function Documentation

◆ activate() [1/2]

virtual void Basda::Tempo::uei::DeviceUei201Monitor::activate ( DeviceAsync = ::Basda::Device::s_async)
inlinevirtual

activate the device

Implements Basda::Device.

◆ activate() [2/2]

virtual void Basda::Tempo::uei::DeviceUei201Monitor::activate ( DeviceAsync = ::Basda::Device::s_async)
inlinevirtual

activate the device

Implements Basda::Device.

◆ close() [1/2]

virtual void Basda::Tempo::uei::DeviceUei201Monitor::close ( void  )
virtual

function to close the connection to the device.

Implements Basda::Device.

◆ close() [2/2]

void DeviceUei201Monitor::close ( void  )
virtual

function to close the connection to the device.

Implements Basda::Device.

◆ deactivate() [1/2]

virtual void Basda::Tempo::uei::DeviceUei201Monitor::deactivate ( DeviceAsync = ::Basda::Device::s_async)
inlinevirtual

deactivate the device

Implements Basda::Device.

◆ deactivate() [2/2]

virtual void Basda::Tempo::uei::DeviceUei201Monitor::deactivate ( DeviceAsync = ::Basda::Device::s_async)
inlinevirtual

deactivate the device

Implements Basda::Device.

◆ deinit() [1/2]

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

function to deinit the device.

Implements Basda::Device.

◆ deinit() [2/2]

virtual void Basda::Tempo::uei::DeviceUei201Monitor::deinit ( DeviceAsync = ::Basda::Device::s_async)
virtual

function to deinit the device.

Implements Basda::Device.

◆ description() [1/2]

virtual Nice::JointPtrVector& Basda::Tempo::uei::DeviceUei201Monitor::description ( void  )
inlinevirtual

function to read the description

Returns
vector containing all informations

◆ description() [2/2]

virtual Nice::JointPtrVector& Basda::Tempo::uei::DeviceUei201Monitor::description ( void  )
inlinevirtual

function to read the description

Returns
vector containing all informations

◆ handleErrors() [1/2]

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

◆ handleErrors() [2/2]

void Basda::Tempo::uei::DeviceUei201Monitor::handleErrors ( const std::string  message)
private

◆ init() [1/2]

virtual void Basda::Tempo::uei::DeviceUei201Monitor::init ( DeviceAsync = Basda::Device::s_async)
virtual

function to init the device.

Implements Basda::Device.

◆ init() [2/2]

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

function to init the device.

Implements Basda::Device.

◆ isReachable() [1/2]

bool DeviceUei201Monitor::isReachable ( )
virtual

Returns true if the device is reachable.

Otherwise returns false.

Implements Basda::Tempo::TempoDevice.

◆ isReachable() [2/2]

virtual bool Basda::Tempo::uei::DeviceUei201Monitor::isReachable ( )
virtual

Returns true if the device is reachable.

Otherwise returns false.

Implements Basda::Tempo::TempoDevice.

◆ open() [1/2]

void DeviceUei201Monitor::open ( void  )
virtual

function to open the connection to the device.

Implements Basda::Device.

◆ open() [2/2]

virtual void Basda::Tempo::uei::DeviceUei201Monitor::open ( void  )
virtual

function to open the connection to the device.

Implements Basda::Device.

◆ processSensorValue() [1/2]

void Basda::Tempo::uei::DeviceUei201Monitor::processSensorValue ( unsigned  channel,
std::string  sensorDescription,
double  minOperational,
double  maxOperational,
double  minAlarm,
double  maxAlarm,
double  value,
std::string  unit 
)
private

◆ processSensorValue() [2/2]

void DeviceUei201Monitor::processSensorValue ( unsigned  channel,
std::string  sensorDescription,
double  minOperational,
double  maxOperational,
double  minAlarm,
double  maxAlarm,
double  value,
std::string  unit 
)
private

◆ reset() [1/2]

virtual void Basda::Tempo::uei::DeviceUei201Monitor::reset ( DeviceAsync = ::Basda::Device::s_async)
virtual

function to reset the device.

Implements Basda::Device.

◆ reset() [2/2]

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

function to reset the device.

Implements Basda::Device.

◆ setAsReachable() [1/2]

void Basda::Tempo::uei::DeviceUei201Monitor::setAsReachable ( const bool  state)
private

◆ setAsReachable() [2/2]

void DeviceUei201Monitor::setAsReachable ( const bool  state)
private

◆ setGlobalAlarm() [1/2]

void DeviceUei201Monitor::setGlobalAlarm ( )
private

◆ setGlobalAlarm() [2/2]

void Basda::Tempo::uei::DeviceUei201Monitor::setGlobalAlarm ( )
private

◆ setPrecision() [1/2]

double Basda::Tempo::uei::DeviceUei201Monitor::setPrecision ( const double  value,
const int  precision 
)
private

◆ setPrecision() [2/2]

double DeviceUei201Monitor::setPrecision ( const double  value,
const int  precision 
)
private

◆ setPropertiesAsUnknown() [1/2]

void Basda::Tempo::uei::DeviceUei201Monitor::setPropertiesAsUnknown ( )
private

◆ setPropertiesAsUnknown() [2/2]

void DeviceUei201Monitor::setPropertiesAsUnknown ( )
private

◆ setTemperatureProperty() [1/2]

void Basda::Tempo::uei::DeviceUei201Monitor::setTemperatureProperty ( int  temp)
private

◆ setTemperatureProperty() [2/2]

void Basda::Tempo::uei::DeviceUei201Monitor::setTemperatureProperty ( int  temp)
private

◆ updateProperties() [1/2]

virtual void Basda::Tempo::uei::DeviceUei201Monitor::updateProperties ( )
virtual

Update the properties of the device.

Implements Basda::Tempo::TempoDevice.

◆ updateProperties() [2/2]

void DeviceUei201Monitor::updateProperties ( )
virtual

Update the properties of the device.

Implements Basda::Tempo::TempoDevice.

◆ version() [1/2]

virtual void Basda::Tempo::uei::DeviceUei201Monitor::version ( )
virtual

return the library version

Implements Basda::Device.

◆ version() [2/2]

void DeviceUei201Monitor::version ( void  )
virtual

return the library version

Implements Basda::Device.

Member Data Documentation

◆ alarm_

unsigned short Basda::Tempo::uei::DeviceUei201Monitor::alarm_
private

◆ channelGradient_

std::map< std::string, double > Basda::Tempo::uei::DeviceUei201Monitor::channelGradient_
private

Variables needed to store the curve of the sensor as y= m(x-x1) + y1.

◆ channelNumber_

std::map< std::string, unsigned short > Basda::Tempo::uei::DeviceUei201Monitor::channelNumber_
private

◆ channelX1_

std::map< std::string, double > Basda::Tempo::uei::DeviceUei201Monitor::channelX1_
private

◆ channelY1_

std::map< std::string, double > Basda::Tempo::uei::DeviceUei201Monitor::channelY1_
private

◆ conAddr_

std::string Basda::Tempo::uei::DeviceUei201Monitor::conAddr_
private

stores the address of the device currently connected to

◆ error_

unsigned short Basda::Tempo::uei::DeviceUei201Monitor::error_
private

◆ isReachable_

bool Basda::Tempo::uei::DeviceUei201Monitor::isReachable_
private

◆ numberOfChannels_

unsigned short Basda::Tempo::uei::DeviceUei201Monitor::numberOfChannels_
private

◆ partNodes_

Nice::JointPtrVector Basda::Tempo::uei::DeviceUei201Monitor::partNodes_
protected

vector containing the children

◆ syncMutex_

IceUtil::RecMutex Basda::Tempo::uei::DeviceUei201Monitor::syncMutex_
private

◆ uei201_

UeiDna201Ptr Basda::Tempo::uei::DeviceUei201Monitor::uei201_
private

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