rad 6.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
exmalserver::ActionsMove Class Reference

#include <actionsMove.hpp>

Inheritance diagram for exmalserver::ActionsMove:
rad::ActionGroup

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
 
ActionsMoveoperator= (const ActionsMove &)=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

This class contains the implementation of the actions dealing with the following events:

Constructor & Destructor Documentation

◆ ActionsMove() [1/2]

exmalserver::ActionsMove::ActionsMove ( boost::asio::io_context & ios,
rad::SMAdapter & sm,
DataContext & data )

Constructor.

Parameters
[in]iosReference to the event loop.
[in]smState Machine facade.
[in]dataData shared within the application among actions and activities.

◆ ActionsMove() [2/2]

exmalserver::ActionsMove::ActionsMove ( const ActionsMove & )
delete

Member Function Documentation

◆ Done()

void exmalserver::ActionsMove::Done ( scxml4cpp::Context * c)

Replies OK to the originator of the Move command.

Parameters
[in]cContext containing the last event received by the State Machine.

◆ Err()

void exmalserver::ActionsMove::Err ( scxml4cpp::Context * c)

Replies ERR to the originator of the Move command.

Parameters
[in]cContext containing the last event received by the State Machine.

◆ operator=()

ActionsMove & exmalserver::ActionsMove::operator= ( const ActionsMove & )
delete

Disable copy constructor.

◆ Start()

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.

Parameters
[in]cContext containing the last event received by the State Machine.

◆ Stop()

void exmalserver::ActionsMove::Stop ( scxml4cpp::Context * c)

Stops the current movement and replies:

  • 'move aborted' to the originator of the Move event.
  • OK to the originator of the Stop event.
Parameters
[in]cContext containing the last event received by the State Machine.

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