rad 6.2.0
|
#include <actionsMove.hpp>
Public Member Functions | |
ActionsMove (boost::asio::io_context &ios, rad::SMAdapter &sm, DataContext &data) | |
void | Start (scxml4cpp::Context *c) |
void | Stop (scxml4cpp::Context *c) |
void | Done (scxml4cpp::Context *c) |
void | Err (scxml4cpp::Context *c) |
ActionsMove (const ActionsMove &)=delete | |
ActionsMove & | operator= (const ActionsMove &)=delete |
Disable copy constructor. | |
![]() | |
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. | |
This class contains the implementation of the actions dealing with the following events:
exmalserver::ActionsMove::ActionsMove | ( | boost::asio::io_context & | ios, |
rad::SMAdapter & | sm, | ||
DataContext & | data ) |
Constructor.
[in] | ios | Reference to the event loop. |
[in] | sm | State Machine facade. |
[in] | data | Data shared within the application among actions and activities. |
|
delete |
void exmalserver::ActionsMove::Done | ( | scxml4cpp::Context * | c | ) |
Replies OK to the originator of the Move command.
[in] | c | Context containing the last event received by the State Machine. |
void exmalserver::ActionsMove::Err | ( | scxml4cpp::Context * | c | ) |
Replies ERR to the originator of the Move command.
[in] | c | Context containing the last event received by the State Machine. |
|
delete |
Disable copy constructor.
void exmalserver::ActionsMove::Start | ( | scxml4cpp::Context * | c | ) |
Retrieves from the Move event the associated target position in ALT/AZ, and stores it locally to be used by the (thread) ActivityMoving to simulate the axes movements.
[in] | c | Context containing the last event received by the State Machine. |
void exmalserver::ActionsMove::Stop | ( | scxml4cpp::Context * | c | ) |
Stops the current movement and replies:
[in] | c | Context containing the last event received by the State Machine. |