TwiceAsNice
2019-02-18
|
#include <BasicIODeviceWutTestFixture.h>
Public Member Functions | |
TestableIODeviceWut (const Nice::JointPtr &config) | |
void | replaceWebSocketFactory (Basda::WebSocketFactoryPtr newFactory) |
unsigned | getMaxAllowedNetworkServiceDelayInMicroSec () |
unsigned | getPollCycleTimeInMilliSec () |
virtual void | startWatchdogThread () |
unsigned | getInvocationCount_startWebIoWatchdogThread () |
virtual void | terminateWatchdogThreadIfAny () |
unsigned | getInvocationCount_terminateWatchdogThreadIfAny () |
![]() | |
IODeviceWut (const Nice::JointPtr &_config) | |
virtual | ~IODeviceWut () |
virtual void | open () |
initialize fundamental communication parameters. Define hostname, password and polling cycle. More... | |
virtual void | close () |
toggle an internal flag to disable further use. More... | |
virtual void | reset (Basda::DeviceAsync &=Basda::Device::s_async) |
Tells the basda status to assume a reset state. More... | |
virtual void | init (Basda::DeviceAsync &=Basda::Device::s_async) |
Initialize counters and values to an unknown status. More... | |
virtual void | deinit (Basda::DeviceAsync &=Basda::Device::s_async) |
Tells the basda status to assume a de-initialized status. More... | |
virtual void | activate (DeviceAsync &=s_async) |
dummy function which does nothing. More... | |
virtual void | deactivate (DeviceAsync &=s_async) |
dummy function which does nothing. More... | |
virtual void | version () |
logs a version number into the logger. More... | |
virtual std::vector< double > | read () |
Reads out the device and updates the property tree. More... | |
virtual void | write (std::vector< double >) |
dummy function. Does nothing. More... | |
virtual enum PortState | readOutputPort (int index) |
Obtain a single port's status. More... | |
virtual void | setOutputPort (int portIndex, enum PortState desiredState) |
Set a single output port to on or off. More... | |
virtual Nice::JointPtrVector | description (void) |
get the part nodes More... | |
virtual bool | isReachable () |
virtual void | hardwareIsReachable () |
Set the flag for reachability to true. More... | |
virtual void | hardwareIsUnreachable () |
Set the flag for reachability to false. More... | |
![]() | |
AnalogIODevice (const Nice::JointPtr &_config) | |
AnalogIODevice (const Nice::JointPtr &_config) | |
AnalogIODevice (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... | |
Private Attributes | |
unsigned | invocationCount_startWebIoWatchdogThread_ |
unsigned | invocationCount_terminateWatchdogThreadIfAny_ |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
private |
|
private |