rad  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
exmalserver::ActionsMove Class Reference

#include <actionsMove.hpp>

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

Public Member Functions

 ActionsMove (boost::asio::io_service &ios, rad::SMAdapter &sm, DataContext &data)
 
void Start (const rad::AnyEvent &last_event)
 
void Stop (const rad::AnyEvent &last_event)
 
void Done (const rad::AnyEvent &last_event)
 
void Err (const rad::AnyEvent &last_event)
 
 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 (const rad::AnyEvent &last_event)
 
void Stop (const rad::AnyEvent &last_event)
 
void Done (const rad::AnyEvent &last_event)
 
void Err (const rad::AnyEvent &last_event)
 
 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

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.
exmalserver::ActionsMove::ActionsMove ( const ActionsMove )
delete
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.
exmalserver::ActionsMove::ActionsMove ( const ActionsMove )
delete

Member Function Documentation

void exmalserver::ActionsMove::Done ( const rad::AnyEvent last_event)

Replies OK to the originator of the Move command.

Parameters
[in]last_eventAxesInPos event.
void exmalserver::ActionsMove::Done ( const rad::AnyEvent last_event)

Replies OK to the originator of the Move command.

Parameters
[in]last_eventAxesInPos event.
void exmalserver::ActionsMove::Err ( const rad::AnyEvent last_event)

Replies ERR to the originator of the Move command.

Parameters
[in]last_eventAxesErr event.
void exmalserver::ActionsMove::Err ( const rad::AnyEvent last_event)

Replies ERR to the originator of the Move command.

Parameters
[in]last_eventAxesErr event.
ActionsMove& exmalserver::ActionsMove::operator= ( const ActionsMove )
delete

Disable copy constructor.

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

Disable copy constructor.

void exmalserver::ActionsMove::Start ( const rad::AnyEvent last_event)

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]last_eventLast event received which should be a Start event.
void exmalserver::ActionsMove::Start ( const rad::AnyEvent last_event)

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]last_eventLast event received which should be a Start event.
void exmalserver::ActionsMove::Stop ( const rad::AnyEvent last_event)

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]last_eventStop event.
void exmalserver::ActionsMove::Stop ( const rad::AnyEvent last_event)

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]last_eventStop event.

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