rad
2.0.0
|
#include <actionsMove.hpp>
Public Member Functions | |
ActionsMove (boost::asio::io_service &ios, rad::SMAdapter &sm, DataContext &data) | |
void | Start (const rad::AnyEvent &last_event) |
void | Stop (const rad::AnyEvent &last_event) |
void | Done (const rad::AnyEvent &last_event) |
void | Err (const rad::AnyEvent &last_event) |
ActionsMove (const ActionsMove &)=delete | |
ActionsMove & | operator= (const ActionsMove &)=delete |
Disable copy constructor. More... | |
ActionsMove (boost::asio::io_service &ios, rad::SMAdapter &sm, DataContext &data) | |
void | Start (const rad::AnyEvent &last_event) |
void | Stop (const rad::AnyEvent &last_event) |
void | Done (const rad::AnyEvent &last_event) |
void | Err (const rad::AnyEvent &last_event) |
ActionsMove (const ActionsMove &)=delete | |
ActionsMove & | operator= (const ActionsMove &)=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... | |
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 the following events:
exmalserver::ActionsMove::ActionsMove | ( | boost::asio::io_service & | 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 |
exmalserver::ActionsMove::ActionsMove | ( | boost::asio::io_service & | 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 | ( | const rad::AnyEvent & | last_event | ) |
Replies OK to the originator of the Move command.
[in] | last_event | AxesInPos event. |
void exmalserver::ActionsMove::Done | ( | const rad::AnyEvent & | last_event | ) |
Replies OK to the originator of the Move command.
[in] | last_event | AxesInPos event. |
void exmalserver::ActionsMove::Err | ( | const rad::AnyEvent & | last_event | ) |
Replies ERR to the originator of the Move command.
[in] | last_event | AxesErr event. |
void exmalserver::ActionsMove::Err | ( | const rad::AnyEvent & | last_event | ) |
Replies ERR to the originator of the Move command.
[in] | last_event | AxesErr event. |
|
delete |
Disable copy constructor.
|
delete |
Disable copy constructor.
void exmalserver::ActionsMove::Start | ( | const rad::AnyEvent & | last_event | ) |
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] | last_event | Last event received which should be a Start event. |
void exmalserver::ActionsMove::Start | ( | const rad::AnyEvent & | last_event | ) |
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] | last_event | Last event received which should be a Start event. |
void exmalserver::ActionsMove::Stop | ( | const rad::AnyEvent & | last_event | ) |
Stops the current movement and replies:
[in] | last_event | Stop event. |
void exmalserver::ActionsMove::Stop | ( | const rad::AnyEvent & | last_event | ) |
Stops the current movement and replies:
[in] | last_event | Stop event. |