ifw-sup
3.0.0-pre3
|
#include <iSubsys.hpp>
Public Member Functions | |
virtual bool | IsNotReady () const =0 |
Check if subsys is Standby/NotReady. More... | |
virtual bool | IsReady () const =0 |
Check if subsys is Standby/Ready. More... | |
virtual bool | IsOperational () const =0 |
Check if subsys is Operational. More... | |
virtual void | CheckSubsysFailure () const =0 |
Check if subsys is in failure state. More... | |
virtual bool | IsDisabling () const =0 |
Check if subsys is disablig. More... | |
virtual std::optional< elt::mal::future< void > > | Connect ()=0 |
virtual void | StartSubscription ()=0 |
virtual elt::mal::future< std::string > | Init ()=0 |
Executes a Init command. More... | |
virtual elt::mal::future< std::string > | Enable ()=0 |
Executes a Enable command. More... | |
virtual elt::mal::future< std::string > | Disable ()=0 |
Executes a Disable command. More... | |
virtual elt::mal::future< std::string > | Stop ()=0 |
Executes a Stop command. More... | |
virtual elt::mal::future< std::string > | GetState ()=0 |
virtual elt::mal::future< std::string > | GetStatus ()=0 |
virtual elt::mal::future< std::string > | GetVersion ()=0 |
virtual elt::mal::future< std::string > | Reset ()=0 |
Executes a Reset command. More... | |
virtual void | Status (const std::string &payload, std::string &buffer)=0 |
Obtain the status of the subsys. More... | |
virtual void | Ignore (rad::AnyEvent const &last_event)=0 |
Executes a Ignore. More... | |
virtual void | StopIgn (rad::AnyEvent const &last_event)=0 |
Executes a StopIgn. More... | |
virtual void | SubsysReset (rad::AnyEvent const &last_event)=0 |
Executes a hardware reset command. More... | |
virtual void | SubsysInit (rad::AnyEvent const &last_event)=0 |
Executes a hardware init command. More... | |
virtual void | SubsysEnable (rad::AnyEvent const &last_event)=0 |
Executes a hardware enable command. More... | |
virtual void | SubsysDisable (rad::AnyEvent const &last_event)=0 |
Executes a hardware disable command. More... | |
virtual void | Setup (const std::any &payload)=0 |
Executes a run time configuration. More... | |
virtual void | UpdateConfig ()=0 |
Update subsystem configuration. More... | |
virtual std::string | GetName () const =0 |
Get subsys name. More... | |
Subsys abstract class. This class represents the basic implementation of a subsys class. Most of the subsys 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.
|
pure virtual |
Check if subsys is in failure state.
an | exception if an error ocurrs. |
Implemented in sup::syssup::common::Subsys.
|
pure virtual |
|
pure virtual |
Executes a Disable command.
an | exception if an error ocurrs. |
|
pure virtual |
Executes a Enable command.
an | exception if an error ocurrs. |
|
pure virtual |
Get subsys name.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Executes a Ignore.
[in] | last_event | contains the payload of the Ignore message. |
an | exception if an error ocurrs. |
Implemented in sup::syssup::common::Subsys.
|
pure virtual |
Executes a Init command.
an | exception if an error ocurrs. |
|
pure virtual |
Check if subsys is disablig.
Implemented in sup::syssup::common::Subsys.
|
pure virtual |
Check if subsys is Standby/NotReady.
Implemented in sup::syssup::common::Subsys.
|
pure virtual |
Check if subsys is Operational.
Implemented in sup::syssup::common::Subsys.
|
pure virtual |
Check if subsys is Standby/Ready.
Implemented in sup::syssup::common::Subsys.
|
pure virtual |
Executes a Reset command.
an | exception if an error ocurrs. |
|
pure virtual |
Executes a run time configuration.
[in] | payload | contains the payload of the setup message. |
an | exception if an error ocurrs. |
|
pure virtual |
|
pure virtual |
Obtain the status of the subsys.
buffer | Buffer where the status will be written |
|
pure virtual |
Executes a Stop command.
an | exception if an error ocurrs. |
|
pure virtual |
Executes a StopIgn.
[in] | last_event | contains the payload of the StopIgn message. |
an | exception if an error ocurrs. |
Implemented in sup::syssup::common::Subsys.
|
pure virtual |
Executes a hardware disable command.
[in] | last_event | payload of the hw disable message |
an | exception if an error ocurrs. |
Implemented in sup::syssup::common::Subsys.
|
pure virtual |
Executes a hardware enable command.
[in] | last_event | payload of the hw enable message |
an | exception if an error ocurrs. |
Implemented in sup::syssup::common::Subsys.
|
pure virtual |
Executes a hardware init command.
[in] | last_event | payload of the hw init message |
an | exception if an error ocurrs. |
Implemented in sup::syssup::common::Subsys.
|
pure virtual |
Executes a hardware reset command.
[in] | last_event | payload of the hw reset message |
an | exception if an error ocurrs. |
Implemented in sup::syssup::common::Subsys.
|
pure virtual |
Update subsystem configuration.