rad 6.2.0
Loading...
Searching...
No Matches
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_context &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.
 
- 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.
 

Detailed Description

Class grouping the actions related to the Preset event.

Constructor & Destructor Documentation

◆ ActionsPreset() [1/2]

server::ActionsPreset::ActionsPreset ( boost::asio::io_context & 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()

server::ActionsPreset::~ActionsPreset ( )
virtual

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

◆ ActionsPreset() [2/2]

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

Member Function Documentation

◆ Done()

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

Replies OK to the originator of the Preset event.

Parameters
[in]eventMoveOk event.

◆ Monitor()

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

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

Parameters
[in]eventDevMeas event.

◆ operator=()

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

Disable copy constructor.

◆ Start()

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.

◆ Stop()

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.

◆ Timeout()

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

Replies ERROR timeout to the originator of the Preset event.

Parameters
[in]eventMoveTimeout event.

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