TwiceAsNice  2019-02-18
Public Member Functions | Protected Types | Protected Attributes | List of all members
Basda::MoccaLCDevice Class Referenceabstract

This is a specialization of the IO device class. More...

#include <LCDevice.h>

Inheritance diagram for Basda::MoccaLCDevice:
Inheritance graph
Collaboration diagram for Basda::MoccaLCDevice:
Collaboration graph

Public Member Functions

 MoccaLCDevice (const Nice::JointPtr &_config)
 Constructor. More...
 
virtual ~MoccaLCDevice ()
 Constructor. More...
 
virtual bool isReachable ()=0
 
virtual void setLinkTimeout (Nice::Time _tcpConnectionTimeout)=0
 
virtual Nice::SeqTime getLinkTimeout ()=0
 
virtual void setIntensity (std::string _lightSource, unsigned int _intensity)=0
 
virtual Nice::MapStringInt getIntensity ()=0
 
virtual void switchOn (unsigned int _intensity)=0
 
virtual void switchOff ()=0
 
 MoccaLCDevice (const Nice::JointPtr &_config)
 Constructor. More...
 
virtual ~MoccaLCDevice ()
 Constructor. More...
 
virtual bool isReachable ()=0
 
virtual void setLinkTimeout (Nice::Time _tcpConnectionTimeout)=0
 
virtual Nice::SeqTime getLinkTimeout ()=0
 
virtual void setIntensity (std::string _lightSource, unsigned int _intensity)=0
 
virtual Nice::MapStringInt getIntensity ()=0
 
virtual void switchOn (unsigned int _intensity)=0
 
virtual void switchOff ()=0
 
 MoccaLCDevice (const Nice::JointPtr &_config)
 Constructor. More...
 
virtual ~MoccaLCDevice ()
 Constructor. More...
 
virtual bool isReachable ()=0
 
virtual void setLinkTimeout (Nice::Time _tcpConnectionTimeout)=0
 
virtual Nice::SeqTime getLinkTimeout ()=0
 
virtual void setIntensity (std::string _lightSource, unsigned int _intensity)=0
 
virtual Nice::MapStringInt getIntensity ()=0
 
virtual void switchOn (unsigned int _intensity)=0
 
virtual void switchOff ()=0
 
- Public Member Functions inherited from Basda::DigitalIODevice
 DigitalIODevice (const Nice::JointPtr &_config)
 
virtual Nice::BitSet read ()=0
 read from the device all ports. More...
 
virtual void write (Nice::BitSet)=0
 
virtual enum PortState readOutputPort (int index)=0
 
virtual void setOutputPort (int portIndex, enum PortState desiredState)=0
 
virtual Nice::JointPtrVector description ()=0
 read description More...
 
 DigitalIODevice (const Nice::JointPtr &_config)
 
virtual Nice::BitSet read ()=0
 read from the device all ports. More...
 
virtual void write (Nice::BitSet)=0
 
virtual enum PortState readOutputPort (int index)=0
 
virtual void setOutputPort (int portIndex, enum PortState desiredState)=0
 
virtual Nice::JointPtrVector description ()=0
 read description More...
 
 DigitalIODevice (const Nice::JointPtr &_config)
 
virtual Nice::BitSet read ()=0
 read from the device all ports. More...
 
virtual void write (Nice::BitSet)=0
 
virtual enum PortState readOutputPort (int index)=0
 
virtual void setOutputPort (int portIndex, enum PortState desiredState)=0
 
virtual Nice::JointPtrVector description ()=0
 read description More...
 
- 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...
 
virtual void open ()=0
 open device More...
 
virtual void close ()=0
 close device More...
 
virtual void reset (DeviceAsync &=s_async)=0
 reset the device More...
 
virtual void version ()=0
 version More...
 
virtual void init (DeviceAsync &=s_async)=0
 init the device More...
 
virtual void deinit (DeviceAsync &=s_async)=0
 deinit the device More...
 
virtual void activate (DeviceAsync &=s_async)=0
 activate the device More...
 
virtual void deactivate (DeviceAsync &=s_async)=0
 deactivate the device 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...
 
virtual void open ()=0
 open device More...
 
virtual void close ()=0
 close device More...
 
virtual void reset (DeviceAsync &=s_async)=0
 reset the device More...
 
virtual void version ()=0
 version More...
 
virtual void init (DeviceAsync &=s_async)=0
 init the device More...
 
virtual void deinit (DeviceAsync &=s_async)=0
 deinit the device More...
 
virtual void activate (DeviceAsync &=s_async)=0
 activate the device More...
 
virtual void deactivate (DeviceAsync &=s_async)=0
 deactivate the device More...
 

Protected Types

enum  CMDS {
  OPEN, CLOSE, RESET, INIT,
  DEINIT, ACTIVATE, DEACTIVATE, READ,
  WRITE, READOUTPUTPORT, SETOUTPUTPORT, OPEN,
  CLOSE, RESET, INIT, DEINIT,
  ACTIVATE, DEACTIVATE, READ, WRITE,
  READOUTPUTPORT, SETOUTPUTPORT, OPEN, CLOSE,
  RESET, INIT, DEINIT, ACTIVATE,
  DEACTIVATE, READ, WRITE, READOUTPUTPORT,
  SETOUTPUTPORT
}
 
enum  CMDS {
  OPEN, CLOSE, RESET, INIT,
  DEINIT, ACTIVATE, DEACTIVATE, READ,
  WRITE, READOUTPUTPORT, SETOUTPUTPORT, OPEN,
  CLOSE, RESET, INIT, DEINIT,
  ACTIVATE, DEACTIVATE, READ, WRITE,
  READOUTPUTPORT, SETOUTPUTPORT, OPEN, CLOSE,
  RESET, INIT, DEINIT, ACTIVATE,
  DEACTIVATE, READ, WRITE, READOUTPUTPORT,
  SETOUTPUTPORT
}
 
enum  CMDS {
  OPEN, CLOSE, RESET, INIT,
  DEINIT, ACTIVATE, DEACTIVATE, READ,
  WRITE, READOUTPUTPORT, SETOUTPUTPORT, OPEN,
  CLOSE, RESET, INIT, DEINIT,
  ACTIVATE, DEACTIVATE, READ, WRITE,
  READOUTPUTPORT, SETOUTPUTPORT, OPEN, CLOSE,
  RESET, INIT, DEINIT, ACTIVATE,
  DEACTIVATE, READ, WRITE, READOUTPUTPORT,
  SETOUTPUTPORT
}
 

Protected Attributes

Nice::Completion m_completion
 
- Protected Attributes inherited from Basda::Device
Nice::JointPtr m_config
 
Nice::JointPtr m_cfg
 
Nice::JointPtr m_var
 
std::string m_name
 

Additional Inherited Members

- Public Types inherited from Basda::DigitalIODevice
enum  PortState {
  PORT_STATE_OFF = 0, PORT_STATE_ON = 1, PORT_STATE_OFF = 0, PORT_STATE_ON = 1,
  PORT_STATE_OFF = 0, PORT_STATE_ON = 1
}
 
enum  PortState {
  PORT_STATE_OFF = 0, PORT_STATE_ON = 1, PORT_STATE_OFF = 0, PORT_STATE_ON = 1,
  PORT_STATE_OFF = 0, PORT_STATE_ON = 1
}
 
enum  PortState {
  PORT_STATE_OFF = 0, PORT_STATE_ON = 1, PORT_STATE_OFF = 0, PORT_STATE_ON = 1,
  PORT_STATE_OFF = 0, PORT_STATE_ON = 1
}
 
- Static Public Attributes inherited from Basda::Device
static DeviceAsyncImpl s_async
 

Detailed Description

This is a specialization of the IO device class.

Author
Frank Kittmann
Version
02.12.14
Date
2014.12.02

Member Enumeration Documentation

◆ CMDS [1/3]

Enumerator
OPEN 
CLOSE 
RESET 
INIT 
DEINIT 
ACTIVATE 
DEACTIVATE 
READ 
WRITE 
READOUTPUTPORT 
SETOUTPUTPORT 
OPEN 
CLOSE 
RESET 
INIT 
DEINIT 
ACTIVATE 
DEACTIVATE 
READ 
WRITE 
READOUTPUTPORT 
SETOUTPUTPORT 
OPEN 
CLOSE 
RESET 
INIT 
DEINIT 
ACTIVATE 
DEACTIVATE 
READ 
WRITE 
READOUTPUTPORT 
SETOUTPUTPORT 

◆ CMDS [2/3]

Enumerator
OPEN 
CLOSE 
RESET 
INIT 
DEINIT 
ACTIVATE 
DEACTIVATE 
READ 
WRITE 
READOUTPUTPORT 
SETOUTPUTPORT 
OPEN 
CLOSE 
RESET 
INIT 
DEINIT 
ACTIVATE 
DEACTIVATE 
READ 
WRITE 
READOUTPUTPORT 
SETOUTPUTPORT 
OPEN 
CLOSE 
RESET 
INIT 
DEINIT 
ACTIVATE 
DEACTIVATE 
READ 
WRITE 
READOUTPUTPORT 
SETOUTPUTPORT 

◆ CMDS [3/3]

Enumerator
OPEN 
CLOSE 
RESET 
INIT 
DEINIT 
ACTIVATE 
DEACTIVATE 
READ 
WRITE 
READOUTPUTPORT 
SETOUTPUTPORT 
OPEN 
CLOSE 
RESET 
INIT 
DEINIT 
ACTIVATE 
DEACTIVATE 
READ 
WRITE 
READOUTPUTPORT 
SETOUTPUTPORT 
OPEN 
CLOSE 
RESET 
INIT 
DEINIT 
ACTIVATE 
DEACTIVATE 
READ 
WRITE 
READOUTPUTPORT 
SETOUTPUTPORT 

Constructor & Destructor Documentation

◆ MoccaLCDevice() [1/3]

Basda::MoccaLCDevice::MoccaLCDevice ( const Nice::JointPtr _config)
inline

Constructor.

Parameters
_configthe root of the configuration tree

◆ ~MoccaLCDevice() [1/3]

virtual Basda::MoccaLCDevice::~MoccaLCDevice ( )
inlinevirtual

Constructor.

◆ MoccaLCDevice() [2/3]

Basda::MoccaLCDevice::MoccaLCDevice ( const Nice::JointPtr _config)
inline

Constructor.

Parameters
_configthe root of the configuration tree

◆ ~MoccaLCDevice() [2/3]

virtual Basda::MoccaLCDevice::~MoccaLCDevice ( )
inlinevirtual

Constructor.

◆ MoccaLCDevice() [3/3]

Basda::MoccaLCDevice::MoccaLCDevice ( const Nice::JointPtr _config)
inline

Constructor.

Parameters
_configthe root of the configuration tree

◆ ~MoccaLCDevice() [3/3]

virtual Basda::MoccaLCDevice::~MoccaLCDevice ( )
inlinevirtual

Constructor.

Member Function Documentation

◆ getIntensity() [1/3]

virtual Nice::MapStringInt Basda::MoccaLCDevice::getIntensity ( )
pure virtual

◆ getIntensity() [2/3]

virtual Nice::MapStringInt Basda::MoccaLCDevice::getIntensity ( )
pure virtual

◆ getIntensity() [3/3]

virtual Nice::MapStringInt Basda::MoccaLCDevice::getIntensity ( )
pure virtual

◆ getLinkTimeout() [1/3]

virtual Nice::SeqTime Basda::MoccaLCDevice::getLinkTimeout ( )
pure virtual

◆ getLinkTimeout() [2/3]

virtual Nice::SeqTime Basda::MoccaLCDevice::getLinkTimeout ( )
pure virtual

◆ getLinkTimeout() [3/3]

virtual Nice::SeqTime Basda::MoccaLCDevice::getLinkTimeout ( )
pure virtual

◆ isReachable() [1/3]

virtual bool Basda::MoccaLCDevice::isReachable ( )
pure virtual

◆ isReachable() [2/3]

virtual bool Basda::MoccaLCDevice::isReachable ( )
pure virtual

◆ isReachable() [3/3]

virtual bool Basda::MoccaLCDevice::isReachable ( )
pure virtual

◆ setIntensity() [1/3]

virtual void Basda::MoccaLCDevice::setIntensity ( std::string  _lightSource,
unsigned int  _intensity 
)
pure virtual

◆ setIntensity() [2/3]

virtual void Basda::MoccaLCDevice::setIntensity ( std::string  _lightSource,
unsigned int  _intensity 
)
pure virtual

◆ setIntensity() [3/3]

virtual void Basda::MoccaLCDevice::setIntensity ( std::string  _lightSource,
unsigned int  _intensity 
)
pure virtual

◆ setLinkTimeout() [1/3]

virtual void Basda::MoccaLCDevice::setLinkTimeout ( Nice::Time  _tcpConnectionTimeout)
pure virtual

◆ setLinkTimeout() [2/3]

virtual void Basda::MoccaLCDevice::setLinkTimeout ( Nice::Time  _tcpConnectionTimeout)
pure virtual

◆ setLinkTimeout() [3/3]

virtual void Basda::MoccaLCDevice::setLinkTimeout ( Nice::Time  _tcpConnectionTimeout)
pure virtual

◆ switchOff() [1/3]

virtual void Basda::MoccaLCDevice::switchOff ( )
pure virtual

◆ switchOff() [2/3]

virtual void Basda::MoccaLCDevice::switchOff ( )
pure virtual

◆ switchOff() [3/3]

virtual void Basda::MoccaLCDevice::switchOff ( )
pure virtual

◆ switchOn() [1/3]

virtual void Basda::MoccaLCDevice::switchOn ( unsigned int  _intensity)
pure virtual

◆ switchOn() [2/3]

virtual void Basda::MoccaLCDevice::switchOn ( unsigned int  _intensity)
pure virtual

◆ switchOn() [3/3]

virtual void Basda::MoccaLCDevice::switchOn ( unsigned int  _intensity)
pure virtual

Member Data Documentation

◆ m_completion

Nice::Completion Basda::MoccaLCDevice::m_completion
protected

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