rad  3.0.0
Public Member Functions | List of all members
server::ActionsPreset Class Reference

#include <actionsPreset.hpp>

Inheritance diagram for server::ActionsPreset:
rad::ActionGroup

Public Member Functions

 ActionsPreset (boost::asio::io_service &ios, rad::SMAdapter &sm, rad::MsgReplier &msg_replier, DataContext &data_ctx)
 
virtual ~ActionsPreset ()
 
void Start (scxml4cpp::Context *c)
 
void Stop (scxml4cpp::Context *c)
 
void Done (scxml4cpp::Context *c)
 
void Timeout (scxml4cpp::Context *c)
 
void Monitor (scxml4cpp::Context *c)
 
 ActionsPreset (const ActionsPreset &)=delete
 
ActionsPresetoperator= (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 (scxml4cpp::Context *c)
 
void Stop (scxml4cpp::Context *c)
 
void Done (scxml4cpp::Context *c)
 
void Timeout (scxml4cpp::Context *c)
 
void Monitor (scxml4cpp::Context *c)
 
 ActionsPreset (const ActionsPreset &)=delete
 
ActionsPresetoperator= (const ActionsPreset &)=delete
 Disable copy constructor. More...
 
- Public Member Functions inherited from rad::ActionGroup
 ActionGroup (const std::string &id)
 
virtual ~ActionGroup ()
 
const std::string & GetId () const
 
void SetId (const std::string &id)
 
 ActionGroup (const ActionGroup &)=delete
 
ActionGroupoperator= (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
 
ActionGroupoperator= (const ActionGroup &)=delete
 Disable copy constructor. More...
 

Detailed Description

Class grouping the actions related to the Preset event.

Constructor & Destructor Documentation

◆ ActionsPreset() [1/4]

server::ActionsPreset::ActionsPreset ( boost::asio::io_service &  ios,
rad::SMAdapter sm,
rad::MsgReplier msg_replier,
DataContext data_ctx 
)

Constructor.

Parameters
[in]iosReference to the event loop.
[in]smReference to the SM adapter used to trigger events.
[in]msg_replierNeeded to reply back to the originator of commands.
[in]data_ctxReference to the application run-time data.

◆ ~ActionsPreset() [1/2]

server::ActionsPreset::~ActionsPreset ( )
virtual

Destructor. Unsubscribes from the DEVMEAS topic used to monitor the device position.

◆ ActionsPreset() [2/4]

server::ActionsPreset::ActionsPreset ( const ActionsPreset )
delete

◆ ActionsPreset() [3/4]

server::ActionsPreset::ActionsPreset ( boost::asio::io_service &  ios,
rad::SMAdapter sm,
rad::MsgReplier msg_replier,
DataContext data_ctx 
)

◆ ~ActionsPreset() [2/2]

virtual server::ActionsPreset::~ActionsPreset ( )
virtual

◆ ActionsPreset() [4/4]

server::ActionsPreset::ActionsPreset ( const ActionsPreset )
delete

Member Function Documentation

◆ Done() [1/2]

void server::ActionsPreset::Done ( scxml4cpp::Context c)

Replies OK to the originator of the Preset event.

Parameters
[in]eventMoveOk event.

◆ Done() [2/2]

void server::ActionsPreset::Done ( scxml4cpp::Context c)

◆ Monitor() [1/2]

void server::ActionsPreset::Monitor ( scxml4cpp::Context c)

Receives the intermidiate device positions (DevMeas topic) and stores them in the DB.

Parameters
[in]eventDevMeas event.

◆ Monitor() [2/2]

void server::ActionsPreset::Monitor ( scxml4cpp::Context c)

◆ operator=() [1/2]

ActionsPreset& server::ActionsPreset::operator= ( const ActionsPreset )
delete

Disable copy constructor.

◆ operator=() [2/2]

ActionsPreset& server::ActionsPreset::operator= ( const ActionsPreset )
delete

Disable copy constructor.

◆ Start() [1/2]

void server::ActionsPreset::Start ( scxml4cpp::Context c)

Retrieves from the Preset event the associated target position and sends a ReqMove command to the device.

Parameters
[in]eventPreset event.

◆ Start() [2/2]

void server::ActionsPreset::Start ( scxml4cpp::Context c)

◆ Stop() [1/2]

void server::ActionsPreset::Stop ( scxml4cpp::Context c)

Replies command aborted to the originator of the Preset event. Replies OK to the originator of the Stop event.

Parameters
[in]eventStop event.

◆ Stop() [2/2]

void server::ActionsPreset::Stop ( scxml4cpp::Context c)

◆ Timeout() [1/2]

void server::ActionsPreset::Timeout ( scxml4cpp::Context c)

Replies ERROR timeout to the originator of the Preset event.

Parameters
[in]eventMoveTimeout event.

◆ Timeout() [2/2]

void server::ActionsPreset::Timeout ( scxml4cpp::Context c)

The documentation for this class was generated from the following files: