|
| PiezoLcsIf (std::shared_ptr< fcf::devmgr::common::IDeviceConfig > config, fcf::devmgr::common::DataContext &data_ctx) |
| piezoLcsIf constructor.
|
|
virtual | ~PiezoLcsIf ()=default |
| Default destructor.
|
|
virtual void | InitObject () |
| Initialize object.
|
|
bool | IsInAuto () const |
| Executes the Auto RPC.
|
|
bool | IsInPos () const |
| Check if piezo is in POS state.
|
|
void | Auto () |
|
void | Home () |
| Executes the Home RPC.
|
|
void | Pos () |
| Executes the Pos RPC.
|
|
void | MoveBits (short bit1, short bit2, short bit3) |
| Executes the MoveBits RPC.
|
|
void | MoveUser (double pos1, double pos2, double pos3) |
| Executes the MoveUser RPC.
|
|
virtual void | ReadStatus (PiezoControllerData &status) |
| Read status from the controller.
|
|
void | Listener (protocol::base::VectorVariant ¶ms) |
| Callback to manage changes on the monitored items.
|
|
virtual std::string | GetRpcError (const short error_code) const |
|
| DeviceLcsIf (std::shared_ptr< IDeviceConfig > config, DataContext &data_ctx) |
| DeviceLcsIf constructor.
|
|
virtual void | InitObject () |
| Initialize object.
|
|
virtual void | RegisterComm (std::shared_ptr< protocol::base::IComm > comm_if, protocol::base::Dispatcher<> &failure, protocol::base::Dispatcher<> &normal) |
| Register a communication interface.
|
|
virtual void | Connect () |
| Connect to the controller or simulator.
|
|
virtual void | Disconnect () |
| Disconnect from the controller of simulator.
|
|
virtual bool | IsNotReady () const |
| Check if controller is in Standby/NotReady state.
|
|
virtual bool | IsReady () const |
| Check if controller is in Standby/Ready state.
|
|
virtual bool | IsDisabling () const |
| Check if controller is in Disabling state.
|
|
virtual bool | IsOperational () const |
| Check if controller is in Operational.
|
|
virtual bool | IsHwFailure () const |
| Check if controller is in Hardware Failure.
|
|
virtual void | Init () |
| Executes the Init RPC.
|
|
virtual void | Enable () |
| Executes the Enable RPC.
|
|
virtual void | Disable () |
| Executes the Disable RPC.
|
|
virtual void | Stop () |
| Executes the Stop RPC.
|
|
virtual void | Reset () |
| Executes the Reset RPC.
|
|
virtual void | StartMonitoring () |
| Start monitoring of controller attributes.
|
|
virtual void | StopMonitoring () |
| Stop monitoring of controller attributes.
|
|
virtual void | ReadStatus (DeviceControllerData &status) |
| ReadStatus.
|
|
virtual void | Listener (protocol::base::VectorVariant ¶ms) |
| Callback for listening controller events.
|
|
virtual std::string | GetRpcError (const short error_code) const =0 |
| Get associated message from the RPC error code.
|
|
virtual std::string | GetHwError (int &error_code, const bool update=false) |
| Get error message.
|
|
std::string | GetMapValue (const std::string &category, const std::string &key) const |
| Get mapping value.
|
|
protocol::base::Dispatcher< protocol::base::VectorVariant & > & | GetDispatcher () |
|
bool | IsConfigLoaded () const |
| Check if configuration was loaded.
|
|
bool | IsConnected () const |
| Check is the communication was established.
|
|
virtual std::shared_ptr< IDeviceConfig > | GetDeviceConfig () const |
| Get a pointer of device configuration.
|
|
const elt::configng::CiiConfigInstanceNamespace & | GetCfgInstance () const |
|
virtual void | GetStates (int &state, int &substate) |
| Get states (state and substate) of the controller.
|
|
|
std::vector< int > | m_pos_bit {0,0,0} |
|
std::vector< double > | m_pos_user {0.0, 0.0, 0.0} |
|
std::unique_ptr< elt::configng::CiiConfigDocument > | m_config_doc |
| Config document for mapping file.
|
|
std::shared_ptr< protocol::base::IComm > | m_comm |
| Shared pointer to the communication object.
|
|
std::shared_ptr< IDeviceConfig > | m_config |
| Shared pointer to the device config object.
|
|
protocol::base::Dispatcher< protocol::base::VectorVariant & > | m_dispatcher |
| Dispatcher for managing subscription events.
|
|
protocol::base::Dispatcher | m_failure |
| Dispatcher for managing failures in the communication.
|
|
protocol::base::Dispatcher | m_normal |
| Dispatcher for managing recovery of communication failures.
|
|
int | m_state {} |
| Actual controller state.
|
|
int | m_substate {} |
| Actual controller substate.
|
|
bool | m_local {false} |
| Actual local flag.
|
|
bool | m_error_code {false} |
| Actual error code.
|
|
bool | m_config_loaded {false} |
| Flag indicating whether the configuration was successfully loaded.
|
|
bool | m_connected {false} |
| Flag indicating whether the LCS is connected.
|
|
fcf::devmgr::common::DataContext & | m_data_ctx |
|
std::string | m_lcs_prefix |
| Store the prefix for storing keys in the database.
|
|
std::unordered_map< std::string, short > | m_ua_status_map |
|
std::vector< std::string > | m_ua_monitor_vector |
|
std::unordered_map< short, std::string > | m_hw_errors |
|
Piezo Local Control System (LCS) Interface (IF) class.
This class manages the Piezo connection to the LCS encapsulating all basic communication with the controller or the simulator.
Each RPC call is synchronous but it only starts the action in the controller. The controller will return successfully if the action can be started, not that the action was completed.
The completion of the action must be monitored by reading the status of the controller but this is out of the scope of this class.