BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions
BeeeOn::GenericZWaveMapperRegistry::GenericMapper Class Reference
Inheritance diagram for BeeeOn::GenericZWaveMapperRegistry::GenericMapper:
BeeeOn::ZWaveMapperRegistry::Mapper

Public Types

typedef Poco::SharedPtr
< GenericMapper
Ptr
 
- Public Types inherited from BeeeOn::ZWaveMapperRegistry::Mapper
typedef Poco::SharedPtr< MapperPtr
 

Public Member Functions

 GenericMapper (const ZWaveNode::Identity &id, const std::string &product)
 
DeviceID buildID () const override
 
std::string product () const override
 
std::list< ModuleTypetypes () const override
 
SensorValue convert (const ZWaveNode::Value &value) const override
 
ZWaveNode::Value convert (const ModuleID &id, double value) const override
 
void mapType (const ZWaveNode::CommandClass &cc, const ModuleType &type)
 Record the given association between the given Z-Wave command class and BeeeOn ModuleType. When calling this method mutiple times, the order corresponds to an increasing ModuleID.
 
- Public Member Functions inherited from BeeeOn::ZWaveMapperRegistry::Mapper
 Mapper (const ZWaveNode::Identity &id, const std::string &product)
 
Poco::Nullable< ModuleTypefindType (const ModuleID &id) const
 Find module type by ID.
 

Static Public Attributes

static uint8_t ID_MANGLE_BITS = ~0
 Mangle bits to be injected into device ID of Z-Wave devices that are using the GenericMapper.
 

Protected Member Functions

void cannotConvert (const ZWaveNode::Value &value) const
 Throw an exception when the given value cannot be converted into the BeeeOn representation.
 
- Protected Member Functions inherited from BeeeOn::ZWaveMapperRegistry::Mapper
ZWaveNode::Identity identity () const
 

Additional Inherited Members

- Static Protected Member Functions inherited from BeeeOn::ZWaveMapperRegistry::Mapper
static DeviceID mangleID (const DeviceID &id, uint8_t bits)
 

Member Function Documentation

DeviceID GenericZWaveMapperRegistry::GenericMapper::buildID ( ) const
overridevirtual
Returns
device ID for the given Z-Wave identity mangled by the ID_MANGLE_BITS (0xff).

Reimplemented from BeeeOn::ZWaveMapperRegistry::Mapper.

SensorValue GenericZWaveMapperRegistry::GenericMapper::convert ( const ZWaveNode::Value value) const
overridevirtual
Returns
SensorValue representation of the ZWaveNode::Value instance

Implements BeeeOn::ZWaveMapperRegistry::Mapper.

ZWaveNode::Value GenericZWaveMapperRegistry::GenericMapper::convert ( const ModuleID id,
double  value 
) const
overridevirtual
Returns
Z-Wave value representing the given value of that module ID.
Exceptions
Poco::NotFoundExceptionif no such controllable module ID is available
Poco::NotImplementedExceptionwhen such module ID is unsupported for changes by this mapper

Reimplemented from BeeeOn::ZWaveMapperRegistry::Mapper.

string GenericZWaveMapperRegistry::GenericMapper::product ( ) const
overridevirtual
Returns
product name of the ZWaveNode with appended " (generic)" string to be easily distinguishable.

Reimplemented from BeeeOn::ZWaveMapperRegistry::Mapper.

list< ModuleType > GenericZWaveMapperRegistry::GenericMapper::types ( ) const
overridevirtual
Returns
resolved module types

Implements BeeeOn::ZWaveMapperRegistry::Mapper.


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