rad
5.2.0
|
#include <actionsApp.hpp>
Public Member Functions | |
ActionsApp (Application &appl, ConfigurableActionMgr &action_mgr, DataContext &data) | |
virtual | ~ActionsApp () |
void | Initialize () override |
void | Configure (const std::vector< std::string > &keys) override |
virtual void | ExitNoReply (scxml4cpp::Context *c) |
virtual void | Redeploy (scxml4cpp::Context *c) |
virtual void | GetConfig (scxml4cpp::Context *c) |
virtual void | SetConfig (scxml4cpp::Context *c) |
virtual void | LoadConfig (scxml4cpp::Context *c) |
virtual void | SaveConfig (scxml4cpp::Context *c) |
virtual void | TrsHealth (scxml4cpp::Context *c) |
virtual void | GetTrsHealth (scxml4cpp::Context *c) |
virtual void | EnableTrsHealth (const bool enable) |
virtual void | GetStateMachine (scxml4cpp::Context *c) |
virtual void | SaveStateMachine (scxml4cpp::Context *c) |
ActionsApp (const ActionsApp &)=delete | |
ActionsApp & | operator= (const ActionsApp &)=delete |
Disable copy constructor. More... | |
![]() | |
ConfigurableActionGroup (const std::string &id) | |
virtual | ~ConfigurableActionGroup () |
ConfigurableActionGroup (const ConfigurableActionGroup &)=delete | |
ConfigurableActionGroup & | operator= (const ConfigurableActionGroup &)=delete |
Disable copy constructor. More... | |
![]() | |
ActionGroup (const std::string &id) | |
virtual | ~ActionGroup () |
const std::string & | GetId () const |
void | SetId (const std::string &id) |
ActionGroup (const ActionGroup &)=delete | |
ActionGroup & | operator= (const ActionGroup &)=delete |
Disable copy constructor. More... | |
This class contains the implementation of the actions dealing with:
rad::ActionsApp::ActionsApp | ( | Application & | appl, |
ConfigurableActionMgr & | action_mgr, | ||
DataContext & | data | ||
) |
Constructor.
appl | Reference to the Application used to inject internal events. |
action_mgr | Reference to the ActionMgr used to trigger the re-initialize notification to all ActionGroup and Activity objects when processing the Init request. |
data | Data shared within the application among actions and activities. |
|
virtual |
|
delete |
|
overridevirtual |
Method invoked when SetConfig or LoadConfig command is received to re-configure this class attributes.
keys | Modified parameters. Empty vector means all params have changed. |
Implements rad::ConfigurableActionGroup.
|
virtual |
This method allows to enable/disable the periodic TRS Health check. If enabled, then RAD will forward TRS health events to the SM (as "TrsEvents.HealthBad", "TrsEvents.HealthGood").
It also writes the enable/disable flag to the OLDB, along with an explanation. If needed, it also updates the TRS state in the DataContext, which is a combination of enabled/disabled and actual status.
enable | True to enable the TRS Health, false to disable. |
|
virtual |
Implementation of the ExitNoReply action. This action:
[in] | c | Context containing the last event received by the State Machine. |
|
virtual |
Implementation of the GetConfig action. This action:
[in] | c | Context containing the last event received by the State Machine. |
|
virtual |
Implementation of the GetStateMachine action. This action returns the State Machine model in text format.
[in] | c | Context containing the last event received by the State Machine. |
|
virtual |
Implementation of the GetTrsHealth action. This action returns the health of the TRS.
[in] | c | Context containing the last event received by the State Machine. |
|
overridevirtual |
Method invoked when Init command is received to re-initialize this class attributes.
Implements rad::ConfigurableActionGroup.
|
virtual |
Implementation of the LoadConfig action. This action:
[in] | c | Context containing the last event received by the State Machine. |
|
delete |
Disable copy constructor.
|
virtual |
Implementation of the Redeploy action. This action:
[in] | c | Context containing the last event received by the State Machine. |
|
virtual |
Implementation of the SaveConfig action. This action saves to file the currently loaded configution parameters.
[in] | c | Context containing the last event received by the State Machine. |
|
virtual |
Implementation of the SaveStateMachine action. This action saves the State Machine model in text format to file.
[in] | c | Context containing the last event received by the State Machine. |
|
virtual |
Implementation of the SetConfig action. This action:
[in] | c | Context containing the last event received by the State Machine. |
|
virtual |
Implementation of the TrsHealth action. This action logs a warning indicating that the Time Reference Signal is not healthy or not available if the TrsBad event is received. Instead, if the TrsOk event is received after a TrsBad, it logs an INFO indicating that TRS is back to normal. TRS health status is also published to the OLDB.
[in] | c | Context containing the last event received by the State Machine. |