|
HLCC Documentation 2.2.0
|
#include <actionsGuards.hpp>
Public Member Functions | |
| ActionsGuards (rad::Application &sm, DataContext &data) | |
| void | Initialize () override |
| void | Configure (const std::vector< std::string > &keys) override |
| bool | EstimatedStateIsTracking (scxml4cpp::Context *c) |
| bool | EstimatedStateIsPresettingRaDec (scxml4cpp::Context *c) |
| bool | EstimatedStateIsStandStill (scxml4cpp::Context *c) |
| bool | EstimatedStateIsTrackingUnexpected (scxml4cpp::Context *c) |
| bool | EstimatedStateIsStandStillUnexpected (scxml4cpp::Context *c) |
| bool | EstimatedStateIsMoving (scxml4cpp::Context *c) |
| bool | IsPresetAllowed (scxml4cpp::Context *c) |
| ActionsGuards (const ActionsGuards &)=delete | |
| ActionsGuards & | operator= (const ActionsGuards &)=delete |
| Disable copy constructor. | |
This class contains the implementation of SM guards.
Technically, guards are also actions themselves, which is why we keep "Actions" in the class name, to show their relation with ActionsStd and ActionsCommands.
| hlcc::eltpk::ActionsGuards::ActionsGuards | ( | rad::Application & | sm, |
| DataContext & | data ) |
Constructor.
| [in] | sm | Reference to the SM Adapter used to inject internal events. |
| [in] | data | Data shared within the application among actions and activities. |
|
delete |
Method invoked when SetConfig or LoadConfig command is received to re-configure the actions class attributes.
| keys | Modified parameters. Empty vector means all params have changed. |
| bool hlcc::eltpk::ActionsGuards::EstimatedStateIsMoving | ( | scxml4cpp::Context * | c | ) |
| bool hlcc::eltpk::ActionsGuards::EstimatedStateIsPresettingRaDec | ( | scxml4cpp::Context * | c | ) |
| bool hlcc::eltpk::ActionsGuards::EstimatedStateIsStandStill | ( | scxml4cpp::Context * | c | ) |
| bool hlcc::eltpk::ActionsGuards::EstimatedStateIsStandStillUnexpected | ( | scxml4cpp::Context * | c | ) |
| bool hlcc::eltpk::ActionsGuards::EstimatedStateIsTracking | ( | scxml4cpp::Context * | c | ) |
Implementation of the EstimatedStateIsTracking guard.
| [in] | c | Context containing the last event received by the State Machine. |
| bool hlcc::eltpk::ActionsGuards::EstimatedStateIsTrackingUnexpected | ( | scxml4cpp::Context * | c | ) |
|
override |
Method invoked when Init command is received to re-initialize the actions class attributes.
| bool hlcc::eltpk::ActionsGuards::IsPresetAllowed | ( | scxml4cpp::Context * | c | ) |
Checks boundary conditions whether a Preset command is allowed. Currently this checks only that PTP sync is working (or is disabled). See ETCS-1246.
| [in] | c | Context containing the last event received by the State Machine. |
|
delete |
Disable copy constructor.