TwiceAsNice
2019-02-18
|
#include <CDeviceDummy.h>
Public Member Functions | |
CoConCDeviceDummy (const Nice::JointPtr &_config) | |
virtual | ~CoConCDeviceDummy () |
virtual void | open () |
This method might be called when the service goes in the INIT state. More... | |
virtual void | close () |
This method might be called when the service goes in the OFFLINE state. More... | |
virtual void | reset (Basda::DeviceAsync &=Basda::Device::s_async) |
This method might be called when the service will be reseted. More... | |
virtual void | version () |
This method returns the version string of the device. More... | |
virtual void | init (DeviceAsync &=Basda::Device::s_async) |
This method initialize the device and set the state to INIT. More... | |
virtual void | deinit (DeviceAsync &=Basda::Device::s_async) |
This method deinitialize the device and set the state to OFFLINE. More... | |
virtual void | activate (DeviceAsync &=Basda::Device::s_async) |
activate something More... | |
virtual void | deactivate (DeviceAsync &=Basda::Device::s_async) |
deactivate something More... | |
virtual bool | isReachable () |
virtual void | resetCollision () |
virtual Nice::BitSet | read () |
read from the device all ports. More... | |
virtual void | write (Nice::BitSet _collision) |
virtual enum Basda::DigitalIODevice::PortState | readOutputPort (int index) |
virtual void | setOutputPort (int portIndex, enum PortState desiredState) |
virtual Nice::JointPtrVector | description () |
read description More... | |
void | setChatType (Nice::ChatLinePtr _chat) |
CoConCDeviceDummy (const Nice::JointPtr &_config) | |
virtual | ~CoConCDeviceDummy () |
virtual void | open () |
This method might be called when the service goes in the INIT state. More... | |
virtual void | close () |
This method might be called when the service goes in the OFFLINE state. More... | |
virtual void | reset (Basda::DeviceAsync &=Basda::Device::s_async) |
This method might be called when the service will be reseted. More... | |
virtual void | version () |
This method returns the version string of the device. More... | |
virtual void | init (DeviceAsync &=Basda::Device::s_async) |
This method initialize the device and set the state to INIT. More... | |
virtual void | deinit (DeviceAsync &=Basda::Device::s_async) |
This method deinitialize the device and set the state to OFFLINE. More... | |
virtual void | activate (DeviceAsync &=Basda::Device::s_async) |
activate something More... | |
virtual void | deactivate (DeviceAsync &=Basda::Device::s_async) |
deactivate something More... | |
virtual bool | isReachable () |
virtual void | resetCollision () |
virtual Nice::BitSet | read () |
read from the device all ports. More... | |
virtual void | write (Nice::BitSet _collision) |
virtual enum Basda::DigitalIODevice::PortState | readOutputPort (int index) |
virtual void | setOutputPort (int portIndex, enum PortState desiredState) |
virtual Nice::JointPtrVector | description () |
read description More... | |
void | setChatType (Nice::ChatLinePtr _chat) |
![]() | |
MoccaCDevice (const Nice::JointPtr &_config) | |
Constructor. More... | |
virtual | ~MoccaCDevice () |
Constructor. More... | |
MoccaCDevice (const Nice::JointPtr &_config) | |
Constructor. More... | |
virtual | ~MoccaCDevice () |
Constructor. More... | |
MoccaCDevice (const Nice::JointPtr &_config) | |
Constructor. More... | |
virtual | ~MoccaCDevice () |
Constructor. More... | |
![]() | |
DigitalIODevice (const Nice::JointPtr &_config) | |
DigitalIODevice (const Nice::JointPtr &_config) | |
DigitalIODevice (const Nice::JointPtr &_config) | |
![]() | |
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::JointPtr & | config () |
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::JointPtr & | config () |
retrieve the property tree More... | |
std::string & | name () |
retrieve the name set at ctor time. More... | |
Protected Attributes | |
Nice::Timer | m_timer |
![]() | |
Nice::Completion | m_completion |
![]() | |
Nice::JointPtr | m_config |
Nice::JointPtr | m_cfg |
Nice::JointPtr | m_var |
std::string | m_name |
Private Member Functions | |
void | createInstances () |
void | setIsReachable (const bool _isReachable) |
void | createInstances () |
void | setIsReachable (const bool _isReachable) |
Private Attributes | |
CoConCardDummyPtr | m_card |
This member keeps the card object. More... | |
Nice::ChatLinePtr | m_chat |
This member keeps the chat object. More... | |
std::string | m_address |
int | m_cardNo |
int | m_moduleNo |
bool | m_isReachable |
Nice::Mutex | m_mutex |
Basda::CoConCDeviceDummy::CoConCDeviceDummy | ( | const Nice::JointPtr & | _config | ) |
|
virtual |
Basda::CoConCDeviceDummy::CoConCDeviceDummy | ( | const Nice::JointPtr & | _config | ) |
|
virtual |
|
virtual |
activate something
_asynch | the call back object |
Implements Basda::Device.
|
virtual |
activate something
_asynch | the call back object |
Implements Basda::Device.
|
virtual |
This method might be called when the service goes in the OFFLINE state.
The connection to the collision controller will be closed.
Implements Basda::Device.
|
virtual |
This method might be called when the service goes in the OFFLINE state.
The connection to the collision controller will be closed.
Implements Basda::Device.
|
private |
|
private |
|
virtual |
deactivate something
_asynch | the call back object |
Implements Basda::Device.
|
virtual |
deactivate something
_asynch | the call back object |
Implements Basda::Device.
|
virtual |
This method deinitialize the device and set the state to OFFLINE.
_asynch | the call back object |
Implements Basda::Device.
|
virtual |
This method deinitialize the device and set the state to OFFLINE.
_asynch | the call back object |
Implements Basda::Device.
|
inlinevirtual |
read description
Implements Basda::DigitalIODevice.
|
inlinevirtual |
read description
Implements Basda::DigitalIODevice.
|
virtual |
This method initialize the device and set the state to INIT.
_asynch | the call back object |
Implements Basda::Device.
|
virtual |
This method initialize the device and set the state to INIT.
_asynch | the call back object |
Implements Basda::Device.
|
virtual |
Implements Basda::MoccaCDevice.
|
virtual |
Implements Basda::MoccaCDevice.
|
virtual |
This method might be called when the service goes in the INIT state.
It connects to the collision controller.
Implements Basda::Device.
|
virtual |
This method might be called when the service goes in the INIT state.
It connects to the collision controller.
Implements Basda::Device.
|
virtual |
read from the device all ports.
Implements Basda::DigitalIODevice.
|
virtual |
read from the device all ports.
Implements Basda::DigitalIODevice.
|
virtual |
Implements Basda::DigitalIODevice.
|
virtual |
Implements Basda::DigitalIODevice.
|
virtual |
This method might be called when the service will be reseted.
The connection to the CoCon will be closed and opened again.
_asynch | the call back object |
Implements Basda::Device.
|
virtual |
This method might be called when the service will be reseted.
The connection to the CoCon will be closed and opened again.
_asynch | the call back object |
Implements Basda::Device.
|
virtual |
Implements Basda::MoccaCDevice.
|
virtual |
Implements Basda::MoccaCDevice.
void Basda::CoConCDeviceDummy::setChatType | ( | Nice::ChatLinePtr | _chat | ) |
void Basda::CoConCDeviceDummy::setChatType | ( | Nice::ChatLinePtr | _chat | ) |
|
virtual |
Implements Basda::DigitalIODevice.
|
virtual |
Implements Basda::DigitalIODevice.
|
virtual |
This method returns the version string of the device.
Implements Basda::Device.
|
virtual |
This method returns the version string of the device.
Implements Basda::Device.
|
virtual |
Implements Basda::DigitalIODevice.
|
virtual |
Implements Basda::DigitalIODevice.
|
private |
|
private |
This member keeps the card object.
|
private |
|
private |
This member keeps the chat object.
The original Nice::Chat::Line object can be exchanged with a Chat::LineMock object to simulate the MoCon behavior.
|
private |
|
private |
|
private |
|
protected |