ifw
0.0.1-dev
|
#include <device.hpp>
Public Member Functions | |
Device (const std::string filename, const std::string name, DataContext &data_ctx) | |
Device abstract class constructor. More... | |
virtual | ~Device () |
Default destructor. More... | |
virtual void | RegisterComm (std::shared_ptr< fcf::common::IComm > comm_if, fcf::common::Dispatcher<> &failure, fcf::common::Dispatcher<> &normal)=0 |
Register a communication interface object. More... | |
virtual bool | IsNotReady () const |
Check if device is Standby/NotReady. More... | |
virtual bool | IsReady () const |
Check if device is Standby/Ready. More... | |
virtual bool | IsOperational () const |
Check if device is Operational. More... | |
virtual void | CheckHwFailure () const |
Check if device is in failure state. More... | |
virtual bool | IsDisabling () const |
Check if device is disablig. More... | |
virtual void | Init () |
Executes a Init command. More... | |
virtual void | Enable () |
Executes a Enable command. More... | |
virtual void | Disable () |
Executes a Disable command. More... | |
virtual void | Stop () |
Executes a Stop command. More... | |
virtual void | Reset () |
Executes a Reset command. More... | |
virtual void | HwReset (modif::ReqHwReset &hwResetMsg) |
Executes a hardware reset command. More... | |
virtual void | HwInit (modif::ReqHwInit &hwInitMsg) |
Executes a hardware init command. More... | |
virtual void | HwEnable (modif::ReqHwEnable &hwEnableMsg) |
Executes a hardware enable command. More... | |
virtual void | HwDisable (modif::ReqHwDisable &hwDisableMsg) |
Executes a hardware disable command. More... | |
virtual void | UpdateStatus ()=0 |
UpdateStatus. More... | |
virtual void | Setup (const modif::ReqSetup &setupMsg)=0 |
Executes a setup. More... | |
virtual bool | IsSetupActive (const modif::ReqSetup &setupMsg) const =0 |
Check if setup is still active. More... | |
virtual void | Status (const modif::ReqStatus &statusMsg, std::string &buffer)=0 |
Obtain the status of the device. More... | |
virtual void | Status (bool end_acq, const dit::did::Did &dictionary, CCfits::FITS *fits_handle=nullptr)=0 |
Obtain the status of the device. More... | |
virtual void | Simulate (const modif::ReqSimulate &msg) |
Executes a Simulat. More... | |
virtual void | StopSim (const modif::ReqStopSim &msg) |
Executes a StopSim. More... | |
virtual void | Ignore (const modif::ReqIgnore &msg) |
Executes a Ignore. More... | |
virtual void | StopIgn (const modif::ReqStopIgn &msg) |
Executes a StopIgn. More... | |
virtual std::shared_ptr < DeviceLcsIf > | GetLcsIf () const =0 |
Get a pointer of device LCS interface. More... | |
virtual std::shared_ptr < IDeviceConfig > | GetConfig () const =0 |
Get a pointer of device configuration. More... | |
virtual void | StartMonitoring () |
Start device monitoring via OPCUA subscriptions. More... | |
virtual void | StopMonitoring () |
Stop device monitoring. More... | |
virtual std::string | GetName () const |
Get device id. More... | |
Device (const std::string filename, const std::string name, DataContext &data_ctx) | |
Device abstract class constructor. More... | |
virtual | ~Device () |
Default destructor. More... | |
virtual void | RegisterComm (std::shared_ptr< fcf::common::IComm > comm_if, fcf::common::Dispatcher<> &failure, fcf::common::Dispatcher<> &normal)=0 |
Register a communication interface object. More... | |
virtual bool | IsNotReady () const |
Check if device is Standby/NotReady. More... | |
virtual bool | IsReady () const |
Check if device is Standby/Ready. More... | |
virtual bool | IsOperational () const |
Check if device is Operational. More... | |
virtual void | CheckHwFailure () const |
Check if device is in failure state. More... | |
virtual bool | IsDisabling () const |
Check if device is disablig. More... | |
virtual void | Init () |
Executes a Init command. More... | |
virtual void | Enable () |
Executes a Enable command. More... | |
virtual void | Disable () |
Executes a Disable command. More... | |
virtual void | Stop () |
Executes a Stop command. More... | |
virtual void | Reset () |
Executes a Reset command. More... | |
virtual void | HwReset (modif::ReqHwReset &hwResetMsg) |
Executes a hardware reset command. More... | |
virtual void | HwInit (modif::ReqHwInit &hwInitMsg) |
Executes a hardware init command. More... | |
virtual void | HwEnable (modif::ReqHwEnable &hwEnableMsg) |
Executes a hardware enable command. More... | |
virtual void | HwDisable (modif::ReqHwDisable &hwDisableMsg) |
Executes a hardware disable command. More... | |
virtual void | UpdateStatus ()=0 |
UpdateStatus. More... | |
virtual void | Setup (const modif::ReqSetup &setupMsg)=0 |
Executes a setup. More... | |
virtual bool | IsSetupActive (const modif::ReqSetup &setupMsg) const =0 |
Check if setup is still active. More... | |
virtual void | Status (const modif::ReqStatus &statusMsg, std::string &buffer)=0 |
Obtain the status of the device. More... | |
virtual void | Status (bool end_acq, const dit::did::Did &dictionary, CCfits::FITS *fits_handle=nullptr)=0 |
Obtain the status of the device. More... | |
virtual void | Simulate (const modif::ReqSimulate &msg) |
Executes a Simulat. More... | |
virtual void | StopSim (const modif::ReqStopSim &msg) |
Executes a StopSim. More... | |
virtual void | Ignore (const modif::ReqIgnore &msg) |
Executes a Ignore. More... | |
virtual void | StopIgn (const modif::ReqStopIgn &msg) |
Executes a StopIgn. More... | |
virtual std::shared_ptr < DeviceLcsIf > | GetLcsIf () const =0 |
Get a pointer of device LCS interface. More... | |
virtual std::shared_ptr < IDeviceConfig > | GetConfig () const =0 |
Get a pointer of device configuration. More... | |
virtual void | StartMonitoring () |
Start device monitoring via OPCUA subscriptions. More... | |
virtual void | StopMonitoring () |
Stop device monitoring. More... | |
virtual std::string | GetName () const |
Get device id. More... | |
Device (const std::string filename, const std::string name, DataContext &data_ctx) | |
Device abstract class constructor. More... | |
virtual | ~Device () |
Default destructor. More... | |
virtual void | RegisterComm (std::shared_ptr< fcf::common::IComm > comm_if, fcf::common::Dispatcher<> &failure, fcf::common::Dispatcher<> &normal)=0 |
Register a communication interface object. More... | |
virtual bool | IsNotReady () const |
Check if device is Standby/NotReady. More... | |
virtual bool | IsReady () const |
Check if device is Standby/Ready. More... | |
virtual bool | IsOperational () const |
Check if device is Operational. More... | |
virtual void | CheckHwFailure () const |
Check if device is in failure state. More... | |
virtual bool | IsDisabling () const |
Check if device is disablig. More... | |
virtual void | Init () |
Executes a Init command. More... | |
virtual void | Enable () |
Executes a Enable command. More... | |
virtual void | Disable () |
Executes a Disable command. More... | |
virtual void | Stop () |
Executes a Stop command. More... | |
virtual void | Reset () |
Executes a Reset command. More... | |
virtual void | HwReset (modif::ReqHwReset &hwResetMsg) |
Executes a hardware reset command. More... | |
virtual void | HwInit (modif::ReqHwInit &hwInitMsg) |
Executes a hardware init command. More... | |
virtual void | HwEnable (modif::ReqHwEnable &hwEnableMsg) |
Executes a hardware enable command. More... | |
virtual void | HwDisable (modif::ReqHwDisable &hwDisableMsg) |
Executes a hardware disable command. More... | |
virtual void | UpdateStatus ()=0 |
UpdateStatus. More... | |
virtual void | Setup (const modif::ReqSetup &setupMsg)=0 |
Executes a setup. More... | |
virtual bool | IsSetupActive (const modif::ReqSetup &setupMsg) const =0 |
Check if setup is still active. More... | |
virtual void | Status (const modif::ReqStatus &statusMsg, std::string &buffer)=0 |
Obtain the status of the device. More... | |
virtual void | Status (bool end_acq, const dit::did::Did &dictionary, CCfits::FITS *fits_handle=nullptr)=0 |
Obtain the status of the device. More... | |
virtual void | Simulate (const modif::ReqSimulate &msg) |
Executes a Simulat. More... | |
virtual void | StopSim (const modif::ReqStopSim &msg) |
Executes a StopSim. More... | |
virtual void | Ignore (const modif::ReqIgnore &msg) |
Executes a Ignore. More... | |
virtual void | StopIgn (const modif::ReqStopIgn &msg) |
Executes a StopIgn. More... | |
virtual std::shared_ptr < DeviceLcsIf > | GetLcsIf () const =0 |
Get a pointer of device LCS interface. More... | |
virtual std::shared_ptr < IDeviceConfig > | GetConfig () const =0 |
Get a pointer of device configuration. More... | |
virtual void | StartMonitoring () |
Start device monitoring via OPCUA subscriptions. More... | |
virtual void | StopMonitoring () |
Stop device monitoring. More... | |
virtual std::string | GetName () const |
Get device id. More... | |
![]() | |
virtual void | CreateObjects (std::shared_ptr< devmgr::common::IDeviceConfig > config=nullptr)=0 |
Create basic objects needed by the device class. More... | |
virtual void | CreateObjects (std::shared_ptr< devmgr::common::IDeviceConfig > config=nullptr)=0 |
Create basic objects needed by the device class. More... | |
virtual void | CreateObjects (std::shared_ptr< devmgr::common::IDeviceConfig > config=nullptr)=0 |
Create basic objects needed by the device class. More... | |
Protected Member Functions | |
bool | IsMsgForMe (const std::string &id) const |
Check if received message id is addressed to me. More... | |
void | UpdateDb (std::vector< std::string > attr_vector) |
Update device database. More... | |
void | SetIgnore (bool flag) |
SetIgnore. More... | |
void | SetSimulation (bool flag) |
SetSimulation. More... | |
void | GetPrefix (const std::vector< std::string > prefix_list, std::string &prefix) |
Get prefix for writing attributes to the DB. More... | |
bool | IsMsgForMe (const std::string &id) const |
Check if received message id is addressed to me. More... | |
void | UpdateDb (std::vector< std::string > attr_vector) |
Update device database. More... | |
void | SetIgnore (bool flag) |
SetIgnore. More... | |
void | SetSimulation (bool flag) |
SetSimulation. More... | |
void | GetPrefix (const std::vector< std::string > prefix_list, std::string &prefix) |
Get prefix for writing attributes to the DB. More... | |
bool | IsMsgForMe (const std::string &id) const |
Check if received message id is addressed to me. More... | |
void | UpdateDb (std::vector< std::string > attr_vector) |
Update device database. More... | |
void | SetIgnore (bool flag) |
SetIgnore. More... | |
void | SetSimulation (bool flag) |
SetSimulation. More... | |
void | GetPrefix (const std::vector< std::string > prefix_list, std::string &prefix) |
Get prefix for writing attributes to the DB. More... | |
Protected Attributes | |
std::string | m_filename |
device configuration filename. More... | |
std::string | m_name |
device ID. More... | |
DataContext & | m_data_ctx |
reference to the data context object. More... | |
fcf::common::Dispatcher | m_failure |
fcf::common::Dispatcher | m_normal |
std::shared_ptr< DeviceConfig > | m_config |
std::shared_ptr< DeviceLcsIf > | m_lcs_if |
Device abstract class. This class represents the basic implementation of a device class. Most of the device share common properties and behavioural aspects. This class is implementing the common behaviour and defining the basic properties, as well as declaring the abstracts methods that need to be implemented by derived classes.
devmgr::common::Device::Device | ( | const std::string | filename, |
const std::string | name, | ||
DataContext & | data_ctx | ||
) |
|
virtual |
Default destructor.
devmgr::common::Device::Device | ( | const std::string | filename, |
const std::string | name, | ||
DataContext & | data_ctx | ||
) |
|
virtual |
Default destructor.
devmgr::common::Device::Device | ( | const std::string | filename, |
const std::string | name, | ||
DataContext & | data_ctx | ||
) |
|
virtual |
Default destructor.
|
virtual |
Check if device is in failure state.
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
Reimplemented in TestMyDevice.
|
virtual |
Check if device is in failure state.
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
Reimplemented in TestMyDevice.
|
virtual |
Check if device is in failure state.
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
Reimplemented in TestMyDevice.
|
virtual |
Executes a Disable command.
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestFailureDevice, and testDeviceFacade::TestMyDevice.
|
virtual |
Executes a Disable command.
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestFailureDevice, and testDeviceFacade::TestMyDevice.
|
virtual |
Executes a Disable command.
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestFailureDevice, and testDeviceFacade::TestMyDevice.
|
virtual |
Executes a Enable command.
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestFailureDevice, and testDeviceFacade::TestMyDevice.
|
virtual |
Executes a Enable command.
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestFailureDevice, and testDeviceFacade::TestMyDevice.
|
virtual |
Executes a Enable command.
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestFailureDevice, and testDeviceFacade::TestMyDevice.
|
pure virtual |
Get a pointer of device configuration.
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, and TestShutter.
|
pure virtual |
Get a pointer of device configuration.
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, and TestShutter.
|
pure virtual |
Get a pointer of device configuration.
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, and TestShutter.
|
pure virtual |
Get a pointer of device LCS interface.
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, and TestShutter.
|
pure virtual |
Get a pointer of device LCS interface.
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, and TestShutter.
|
pure virtual |
Get a pointer of device LCS interface.
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, and TestShutter.
|
virtual |
Get device id.
Implements devmgr::common::IDevice.
|
virtual |
Get device id.
Implements devmgr::common::IDevice.
|
virtual |
Get device id.
Implements devmgr::common::IDevice.
|
protected |
Get prefix for writing attributes to the DB.
prefix_list | List of intermediate prefix values. |
prefix | String containing the formatted prefix. |
|
protected |
Get prefix for writing attributes to the DB.
prefix_list | List of intermediate prefix values. |
prefix | String containing the formatted prefix. |
|
protected |
Get prefix for writing attributes to the DB.
prefix_list | List of intermediate prefix values. |
prefix | String containing the formatted prefix. |
|
virtual |
Executes a hardware disable command.
[in] | hwDisableMsg | payload of the hw disable message |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a hardware disable command.
[in] | hwDisableMsg | payload of the hw disable message |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a hardware disable command.
[in] | hwDisableMsg | payload of the hw disable message |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a hardware enable command.
[in] | hwEnableMsg | payload of the hw enable message |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a hardware enable command.
[in] | hwEnableMsg | payload of the hw enable message |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a hardware enable command.
[in] | hwEnableMsg | payload of the hw enable message |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a hardware init command.
[in] | hwInitMsg | payload of the hw init message |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a hardware init command.
[in] | hwInitMsg | payload of the hw init message |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a hardware init command.
[in] | hwInitMsg | payload of the hw init message |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a hardware reset command.
[in] | hwResetMsg | payload of the hw reset message |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a hardware reset command.
[in] | hwResetMsg | payload of the hw reset message |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a hardware reset command.
[in] | hwResetMsg | payload of the hw reset message |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a Ignore.
[in] | msg | contains the payload of the Ignore message. |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a Ignore.
[in] | msg | contains the payload of the Ignore message. |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a Ignore.
[in] | msg | contains the payload of the Ignore message. |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a Init command.
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestFailureDevice, and testDeviceFacade::TestMyDevice.
|
virtual |
Executes a Init command.
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestFailureDevice, and testDeviceFacade::TestMyDevice.
|
virtual |
Executes a Init command.
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestFailureDevice, and testDeviceFacade::TestMyDevice.
|
virtual |
Check if device is disablig.
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::sensor::Sensor, devmgr::sensor::Sensor, and devmgr::sensor::Sensor.
|
virtual |
Check if device is disablig.
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::sensor::Sensor, devmgr::sensor::Sensor, and devmgr::sensor::Sensor.
|
virtual |
Check if device is disablig.
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::sensor::Sensor, devmgr::sensor::Sensor, and devmgr::sensor::Sensor.
|
protected |
Check if received message id is addressed to me.
[in] | id | message id |
|
protected |
Check if received message id is addressed to me.
[in] | id | message id |
|
protected |
Check if received message id is addressed to me.
[in] | id | message id |
|
virtual |
Check if device is Standby/NotReady.
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, and TestMyDevice.
|
virtual |
Check if device is Standby/NotReady.
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, and TestMyDevice.
|
virtual |
Check if device is Standby/NotReady.
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, and TestMyDevice.
|
virtual |
Check if device is Operational.
Implements devmgr::common::IDevice.
|
virtual |
Check if device is Operational.
Implements devmgr::common::IDevice.
|
virtual |
Check if device is Operational.
Implements devmgr::common::IDevice.
|
virtual |
Check if device is Standby/Ready.
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, and TestMyDevice.
|
virtual |
Check if device is Standby/Ready.
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, and TestMyDevice.
|
virtual |
Check if device is Standby/Ready.
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, and TestMyDevice.
|
pure virtual |
Check if setup is still active.
[in] | setupMsg | Setup message object |
This method validate if condition requested by the setup message has been achieved.
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, and TestShutter.
|
pure virtual |
Check if setup is still active.
[in] | setupMsg | Setup message object |
This method validate if condition requested by the setup message has been achieved.
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, and TestShutter.
|
pure virtual |
Check if setup is still active.
[in] | setupMsg | Setup message object |
This method validate if condition requested by the setup message has been achieved.
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, and TestShutter.
|
pure virtual |
Register a communication interface object.
[in] | comm_if | shared pointer to the communication interface object |
[in] | failure | dispatcher object for failure events |
[in] | normal | dispatcher object for recovery of failure events. |
This method register a particular communication interface to the device. Most of the devices will use OPCUA but there might be several implementations so with this method one can register an interface that has been created previously and registered in the communication factory.
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::lamp::Lamp, devmgr::shutter::Shutter, devmgr::lamp::Lamp, devmgr::shutter::Shutter, devmgr::lamp::Lamp, devmgr::shutter::Shutter, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, and TestShutter.
|
pure virtual |
Register a communication interface object.
[in] | comm_if | shared pointer to the communication interface object |
[in] | failure | dispatcher object for failure events |
[in] | normal | dispatcher object for recovery of failure events. |
This method register a particular communication interface to the device. Most of the devices will use OPCUA but there might be several implementations so with this method one can register an interface that has been created previously and registered in the communication factory.
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::lamp::Lamp, devmgr::shutter::Shutter, devmgr::lamp::Lamp, devmgr::shutter::Shutter, devmgr::lamp::Lamp, devmgr::shutter::Shutter, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, and TestShutter.
|
pure virtual |
Register a communication interface object.
[in] | comm_if | shared pointer to the communication interface object |
[in] | failure | dispatcher object for failure events |
[in] | normal | dispatcher object for recovery of failure events. |
This method register a particular communication interface to the device. Most of the devices will use OPCUA but there might be several implementations so with this method one can register an interface that has been created previously and registered in the communication factory.
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::lamp::Lamp, devmgr::shutter::Shutter, devmgr::lamp::Lamp, devmgr::shutter::Shutter, devmgr::lamp::Lamp, devmgr::shutter::Shutter, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, and TestShutter.
|
virtual |
Executes a Reset command.
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, and TestShutter.
|
virtual |
Executes a Reset command.
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, and TestShutter.
|
virtual |
Executes a Reset command.
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
Reimplemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, and TestShutter.
|
protected |
SetIgnore.
flag |
|
protected |
SetIgnore.
flag |
|
protected |
SetIgnore.
flag |
|
protected |
SetSimulation.
flag |
|
protected |
SetSimulation.
flag |
|
protected |
SetSimulation.
flag |
|
pure virtual |
Executes a setup.
[in] | setupMsg | contains the payload of the setup message. |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, and TestShutter.
|
pure virtual |
Executes a setup.
[in] | setupMsg | contains the payload of the setup message. |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, and TestShutter.
|
pure virtual |
Executes a setup.
[in] | setupMsg | contains the payload of the setup message. |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, and TestShutter.
|
virtual |
Executes a Simulat.
[in] | msg | contains the payload of the Simulat message. |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a Simulat.
[in] | msg | contains the payload of the Simulat message. |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a Simulat.
[in] | msg | contains the payload of the Simulat message. |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Start device monitoring via OPCUA subscriptions.
Implements devmgr::common::IDevice.
|
virtual |
Start device monitoring via OPCUA subscriptions.
Implements devmgr::common::IDevice.
|
virtual |
Start device monitoring via OPCUA subscriptions.
Implements devmgr::common::IDevice.
|
pure virtual |
Obtain the status of the device.
statusMsg | Status message object |
buffer | Buffer where the status will be written |
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, and TestShutter.
|
pure virtual |
Obtain the status of the device.
statusMsg | Status message object |
buffer | Buffer where the status will be written |
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, and TestShutter.
|
pure virtual |
Obtain the status of the device.
statusMsg | Status message object |
buffer | Buffer where the status will be written |
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, and TestShutter.
|
pure virtual |
Obtain the status of the device.
end_acq | Flag to indicate is the end of the acquisition |
dictionary | Reference to the dictionary object |
fits_handle | Pointer to the CCFITS object |
This method will obtain the data from each device and add the corresponding meta-data to the CCfits object. If the end_acq is not true it will just register the start of the acquisition.
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, and TestShutter.
|
pure virtual |
Obtain the status of the device.
end_acq | Flag to indicate is the end of the acquisition |
dictionary | Reference to the dictionary object |
fits_handle | Pointer to the CCFITS object |
This method will obtain the data from each device and add the corresponding meta-data to the CCfits object. If the end_acq is not true it will just register the start of the acquisition.
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, and TestShutter.
|
pure virtual |
Obtain the status of the device.
end_acq | Flag to indicate is the end of the acquisition |
dictionary | Reference to the dictionary object |
fits_handle | Pointer to the CCFITS object |
This method will obtain the data from each device and add the corresponding meta-data to the CCfits object. If the end_acq is not true it will just register the start of the acquisition.
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, and TestShutter.
|
virtual |
Executes a Stop command.
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a Stop command.
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a Stop command.
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a StopIgn.
[in] | msg | contains the payload of the StopIgn message. |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a StopIgn.
[in] | msg | contains the payload of the StopIgn message. |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a StopIgn.
[in] | msg | contains the payload of the StopIgn message. |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Stop device monitoring.
Implements devmgr::common::IDevice.
|
virtual |
Stop device monitoring.
Implements devmgr::common::IDevice.
|
virtual |
Stop device monitoring.
Implements devmgr::common::IDevice.
|
virtual |
Executes a StopSim.
[in] | msg | contains the payload of the StopSim message. |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a StopSim.
[in] | msg | contains the payload of the StopSim message. |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
virtual |
Executes a StopSim.
[in] | msg | contains the payload of the StopSim message. |
an | exception if an error ocurrs. |
Implements devmgr::common::IDevice.
|
protected |
Update device database.
attr_vector | List of attributes with their values. |
|
protected |
Update device database.
attr_vector | List of attributes with their values. |
|
protected |
Update device database.
attr_vector | List of attributes with their values. |
|
pure virtual |
UpdateStatus.
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, TestMyDevice, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, and TestShutter.
|
pure virtual |
UpdateStatus.
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, TestMyDevice, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, and TestShutter.
|
pure virtual |
UpdateStatus.
Implements devmgr::common::IDevice.
Implemented in testDeviceFacade::TestFailureDevice, testDeviceFacade::TestMyDevice, devmgr::motor::Motor, devmgr::motor::Motor, devmgr::motor::Motor, TestMyDevice, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::sensor::Sensor, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::lamp::Lamp, devmgr::shutter::Shutter, devmgr::shutter::Shutter, devmgr::shutter::Shutter, and TestShutter.
|
protected |
|
protected |
reference to the data context object.
|
protected |
|
protected |
device configuration filename.
|
protected |
|
protected |
device ID.
|
protected |