rad
5.1.0
|
#include <actionsApp.hpp>
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.
void rad::ActionsApp::EnableTrsHealth | ( | const bool | enable | ) |
This method allows to enable/disable the periodic TRS Health check.
enable | True to enable the TRS Health checkm false to disable. |
void rad::ActionsApp::ExitNoReply | ( | scxml4cpp::Context * | c | ) |
Implementation of the ExitNoReply action. This action:
[in] | c | Context containing the last event received by the State Machine. |
void rad::ActionsApp::GetConfig | ( | scxml4cpp::Context * | c | ) |
Implementation of the GetConfig action. This action:
[in] | c | Context containing the last event received by the State Machine. |
void rad::ActionsApp::GetStateMachine | ( | scxml4cpp::Context * | c | ) |
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. |
void rad::ActionsApp::GetTrsHealth | ( | scxml4cpp::Context * | c | ) |
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.
void rad::ActionsApp::LoadConfig | ( | scxml4cpp::Context * | c | ) |
Implementation of the LoadConfig action. This action:
[in] | c | Context containing the last event received by the State Machine. |
|
delete |
Disable copy constructor.
void rad::ActionsApp::Redeploy | ( | scxml4cpp::Context * | c | ) |
Implementation of the Redeploy action. This action:
[in] | c | Context containing the last event received by the State Machine. |
void rad::ActionsApp::SaveConfig | ( | scxml4cpp::Context * | c | ) |
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. |
void rad::ActionsApp::SaveStateMachine | ( | scxml4cpp::Context * | c | ) |
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. |
void rad::ActionsApp::SetConfig | ( | scxml4cpp::Context * | c | ) |
Implementation of the SetConfig action. This action:
[in] | c | Context containing the last event received by the State Machine. |
void rad::ActionsApp::TrsHealth | ( | scxml4cpp::Context * | c | ) |
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. |