rad
2.0.0
|
#include <actionsPreset.hpp>
Public Member Functions | |
ActionsPreset (boost::asio::io_service &ios, rad::SMAdapter &sm, rad::MsgReplier &msg_replier, DataContext &data_ctx) | |
virtual | ~ActionsPreset () |
void | Start (rad::AnyEvent const &event) |
void | Stop (rad::AnyEvent const &event) |
void | Done (rad::AnyEvent const &event) |
void | Timeout (rad::AnyEvent const &event) |
void | Monitor (rad::AnyEvent const &event) |
ActionsPreset (const ActionsPreset &)=delete | |
ActionsPreset & | operator= (const ActionsPreset &)=delete |
Disable copy constructor. More... | |
ActionsPreset (boost::asio::io_service &ios, rad::SMAdapter &sm, rad::MsgReplier &msg_replier, DataContext &data_ctx) | |
virtual | ~ActionsPreset () |
void | Start (rad::AnyEvent const &event) |
void | Stop (rad::AnyEvent const &event) |
void | Done (rad::AnyEvent const &event) |
void | Timeout (rad::AnyEvent const &event) |
void | Monitor (rad::AnyEvent const &event) |
ActionsPreset (const ActionsPreset &)=delete | |
ActionsPreset & | operator= (const ActionsPreset &)=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... | |
Class grouping the actions related to the Preset event.
server::ActionsPreset::ActionsPreset | ( | boost::asio::io_service & | ios, |
rad::SMAdapter & | sm, | ||
rad::MsgReplier & | msg_replier, | ||
DataContext & | data_ctx | ||
) |
Constructor.
[in] | ios | Reference to the event loop. |
[in] | sm | Reference to the SM adapter used to trigger events. |
[in] | msg_replier | Needed to reply back to the originator of commands. |
[in] | data_ctx | Reference to the application run-time data. |
|
virtual |
Destructor. Unsubscribes from the DEVMEAS topic used to monitor the device position.
|
delete |
server::ActionsPreset::ActionsPreset | ( | boost::asio::io_service & | ios, |
rad::SMAdapter & | sm, | ||
rad::MsgReplier & | msg_replier, | ||
DataContext & | data_ctx | ||
) |
|
virtual |
|
delete |
void server::ActionsPreset::Done | ( | rad::AnyEvent const & | event | ) |
Replies OK to the originator of the Preset event.
[in] | event | MoveOk event. |
void server::ActionsPreset::Done | ( | rad::AnyEvent const & | event | ) |
void server::ActionsPreset::Monitor | ( | rad::AnyEvent const & | event | ) |
Receives the intermidiate device positions (DevMeas topic) and stores them in the DB.
[in] | event | DevMeas event. |
void server::ActionsPreset::Monitor | ( | rad::AnyEvent const & | event | ) |
|
delete |
Disable copy constructor.
|
delete |
Disable copy constructor.
void server::ActionsPreset::Start | ( | rad::AnyEvent const & | event | ) |
Retrieves from the Preset event the associated target position and sends a ReqMove command to the device.
[in] | event | Preset event. |
void server::ActionsPreset::Start | ( | rad::AnyEvent const & | event | ) |
void server::ActionsPreset::Stop | ( | rad::AnyEvent const & | event | ) |
Replies command aborted to the originator of the Preset event. Replies OK to the originator of the Stop event.
[in] | event | Stop event. |
void server::ActionsPreset::Stop | ( | rad::AnyEvent const & | event | ) |
void server::ActionsPreset::Timeout | ( | rad::AnyEvent const & | event | ) |
void server::ActionsPreset::Timeout | ( | rad::AnyEvent const & | event | ) |
Replies ERROR timeout to the originator of the Preset event.
[in] | event | MoveTimeout event. |