|
| Shutter (const std::string filename, const std::string name, fcf::devmgr::common::DataContext &data_ctx) |
| Shutter constructor. More...
|
|
virtual | ~Shutter ()=default |
| Default destructor. More...
|
|
void | CreateObjects (std::shared_ptr< fcf::devmgr::common::IDeviceConfig > config=nullptr) override |
| Create object instances. More...
|
|
virtual void | UpdateStatus () |
| Update the status of the shutter device in the OLDB. More...
|
|
virtual void | Setup (const std::any &payload) override |
| Executes a setup of the shutter device. More...
|
|
virtual bool | IsSetupActive (const std::any &payload) const override |
| Check if last setup message is still active. More...
|
|
virtual void | Status (const std::any &payload, std::string &buffer) override |
| Obtain the status of the device. More...
|
|
virtual void | Status (bool end_acq, const core::dit::did::Did &dictionary, std::shared_ptr< CCfits::FITS > &fits_handle) override |
| Obtain the status of the device. More...
|
|
| Device (const std::string filename, const std::string name, DataContext &data_ctx) |
| Device abstract class constructor. More...
|
|
virtual | ~Device () |
| Default destructor. More...
|
|
virtual bool | IsNotReady () const override |
| Check if device is Standby/NotReady. More...
|
|
virtual bool | IsReady () const override |
| Check if device is Standby/Ready. More...
|
|
virtual bool | IsOperational () const override |
| Check if device is Operational. More...
|
|
virtual void | CheckHwFailure () const override |
| Check if device is in failure state. More...
|
|
virtual bool | IsDisabling () const override |
| Check if device is disablig. More...
|
|
virtual void | Init () override |
| Executes a Init command. More...
|
|
virtual void | Enable () override |
| Executes a Enable command. More...
|
|
virtual void | Disable () override |
| Executes a Disable command. More...
|
|
virtual void | Stop () override |
| Executes a Stop command. More...
|
|
virtual void | Reset () override |
| Executes a Reset command. More...
|
|
virtual void | GetStatusBuffer (const std::string &stat_prefix, const DeviceControllerData *const data, std::string &buffer) |
|
void | GetStatusHeader (const std::string &prefix, const core::dit::did::Did &dictionary, std::shared_ptr< CCfits::FITS > &fits_handle) |
| Obtain the status of the device. More...
|
|
virtual void | Simulate (rad::AnyEvent const &last_event) override |
| Executes a Simulat. More...
|
|
virtual void | StopSim (rad::AnyEvent const &last_event) override |
| Executes a StopSim. More...
|
|
virtual void | Ignore (rad::AnyEvent const &last_event) override |
| Executes a Ignore. More...
|
|
virtual void | StopIgn (rad::AnyEvent const &last_event) override |
| Executes a StopIgn. More...
|
|
virtual void | HwReset (rad::AnyEvent const &last_event) override |
| Executes a hardware reset command. More...
|
|
virtual void | HwInit (rad::AnyEvent const &last_event) override |
| Executes a hardware init command. More...
|
|
virtual void | HwEnable (rad::AnyEvent const &last_event) override |
| Executes a hardware enable command. More...
|
|
virtual void | HwDisable (rad::AnyEvent const &last_event) override |
| Executes a hardware disable command. More...
|
|
virtual void | StartMonitoring () override |
| Start device monitoring via OPCUA subscriptions. More...
|
|
virtual void | StopMonitoring () override |
| Stop device monitoring. More...
|
|
virtual std::string | GetName () const noexcept override |
| Get device id. More...
|
|
virtual std::string | GetLogName () const noexcept |
| Get device id for logging purposes. More...
|
|
virtual std::shared_ptr< fcf::devmgr::common::DeviceLcsIf > | GetLcsIf () const noexcept |
|
virtual std::shared_ptr< fcf::devmgr::common::IDeviceConfig > | GetConfig () const noexcept |
| Get a pointer of device configuration. More...
|
|
void | RegisterComm (std::shared_ptr< protocol::base::IComm > comm_if, protocol::base::Dispatcher<> &failure, protocol::base::Dispatcher<> &normal) |
| Register a communication interface object. More...
|
|
virtual void | CreateObjects (std::shared_ptr< fcf::devmgr::common::IDeviceConfig > config=nullptr)=0 |
| Create basic objects needed by the device class. More...
|
|
The Shutter class.
This class handles the behaviour of a generic shutter device. The Shutter class have two auxiliary objects. One for managing the device configuration and the other one for managing the connection to the device controller running in the Local Control System (LCS). These two objects are created in the class constructor. These objects inherits basic behaviours from their parent classes.
- See also
- ShutterConfig
-
ShutterLcsIf
-
Device
-
DeviceConfig
-
DeviceLcsIf