rad  3.0.0
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_service &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. More...
 
 ActionsMove (boost::asio::io_service &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. 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

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

Constructor & Destructor Documentation

◆ ActionsMove() [1/4]

exmalserver::ActionsMove::ActionsMove ( boost::asio::io_service &  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/4]

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

◆ ActionsMove() [3/4]

exmalserver::ActionsMove::ActionsMove ( boost::asio::io_service &  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() [4/4]

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

Member Function Documentation

◆ Done() [1/2]

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.

◆ Done() [2/2]

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() [1/2]

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.

◆ Err() [2/2]

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=() [1/2]

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

Disable copy constructor.

◆ operator=() [2/2]

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

Disable copy constructor.

◆ Start() [1/2]

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.

◆ Start() [2/2]

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() [1/2]

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.

◆ Stop() [2/2]

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: