Go to the documentation of this file.
10 #ifndef DEVMGR_DEVICE_ACTUATOR_IF_HPP
11 #define DEVMGR_DEVICE_ACTUATOR_IF_HPP
13 #include <unordered_map>
15 #include <yaml-cpp/yaml.h>
21 #include <rad/mal/publisher.hpp>
61 template<
typename TOPIC_TYPE = fcfif::ActuatorTopicUnion>
82 ActuatorLcsIf(std::shared_ptr<fcf::devmgr::common::IDeviceConfig> config,
152 bool IsOn(
int state,
int substate);
164 bool IsOff(
int state,
int substate);
175 bool force_read =
true);
212 void StoreAttribute(
const std::string key,
213 const fcf::common::Variant& value,
228 #include "actuatorLcsIf.ipp"
230 #endif //DEVMGR_DEVICE_ACTUATOR_IF_HPP
actuator Local Control System (LCS) Interface (IF) class
Definition: actuatorLcsIf.hpp:63
ActuatorControllerData()
Definition: actuatorLcsIf.cpp:31
DataContext class header file.
virtual bool IsReady()
Check if controller is in Standby/Ready state.
bool IsSwitchingOn(int state, int substate)
Check if controller is switching the switch on.
std::unique_ptr< rad::cii::Publisher< TOPIC_TYPE > > m_publisher
Definition: actuatorLcsIf.hpp:219
The actuatorControllerData struct.
Definition: actuatorLcsIf.hpp:33
bool IsSwitchingOff()
Check if controller is switching the switch off.
std::string GetErrorText() const
virtual void ReadStatus(ActuatorControllerData &status, bool force_read=true)
Read status from the controller.
virtual ~ActuatorControllerData()
Definition: actuatorLcsIf.cpp:35
bool IsOff()
Check if switch is off.
actuatorConfig class header file.
bool IsOff(int state, int substate)
Check if switch is off.
deviceLcsIf class header file.
void Listener(fcf::common::VectorVariant ¶ms)
Callback to manage changes on the monitored items.
Definition: dataContext.hpp:92
virtual ~ActuatorLcsIf()
Default destructor.
Definition: actuatorLcsIf.hpp:88
Definition: deviceLcsIf.hpp:75
bool IsSwitchingOff(int state, int substate)
Check if controller is switching the switch off.
Definition: actionMgr.cpp:29
bool IsSwitchingOn()
Check if controller is switching the switch on.
ActuatorLcsIf(std::shared_ptr< fcf::devmgr::common::IDeviceConfig > config, fcf::devmgr::common::DataContext &data_ctx, bool initialise=true)
actuatorLcsIf constructor.
virtual std::string GetSubstateStr() const
void SwitchOff()
Executes the SwitchOff RPC.
bool IsOn()
Check if switch is on.
virtual bool IsOperational()
Check if controller is in Operational.
The DeviceControllerData struct.
Definition: deviceLcsIf.hpp:34
void SetData(const ActuatorControllerData &data)
Definition: actuatorLcsIf.cpp:38
virtual std::string GetRpcError(const short error_code) const
bool IsOn(int state, int substate)
Check if switch is on.
void SwitchOn()
Executes the SwitchOn RPC.