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::ActionsPreset Class Reference

#include <actionsPreset.hpp>

Inheritance diagram for exmalserver::ActionsPreset:
rad::ActionGroup rad::ActionGroup

Public Member Functions

 ActionsPreset (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)
 
void Timeout (const rad::AnyEvent &last_event)
 
void Monitor (const rad::AnyEvent &last_event)
 
void Status (const rad::AnyEvent &last_event)
 
 ActionsPreset (const ActionsPreset &)=delete
 
ActionsPresetoperator= (const ActionsPreset &)=delete
 Disable copy constructor. More...
 
 ActionsPreset (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)
 
void Timeout (const rad::AnyEvent &last_event)
 
void Monitor (const rad::AnyEvent &last_event)
 
void Status (const rad::AnyEvent &last_event)
 
 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

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

Constructor & Destructor Documentation

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

Member Function Documentation

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

Replies OK to the originator of the Preset event.

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

Replies OK to the originator of the Preset event.

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

Replies ERR to the originator of the Preset event.

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

Replies ERR to the originator of the Preset event.

Parameters
[in]last_eventMoveOk event.
void exmalserver::ActionsPreset::Monitor ( const rad::AnyEvent last_event)

Receives the intermediate axes positions (DevMeas topic) and stores them in the DB.

Parameters
[in]last_eventDevMeas event.
void exmalserver::ActionsPreset::Monitor ( const rad::AnyEvent last_event)

Receives the intermediate axes positions (DevMeas topic) and stores them in the DB.

Parameters
[in]last_eventDevMeas event.
ActionsPreset& exmalserver::ActionsPreset::operator= ( const ActionsPreset )
delete

Disable copy constructor.

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

Disable copy constructor.

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

Retrieves from the Preset event the associated target position in RA/DEC, convert them into ALT/AZ and sends a Move command to the telescope axes.

Parameters
[in]last_eventLast event received which should be a Start event.
void exmalserver::ActionsPreset::Start ( const rad::AnyEvent last_event)

Retrieves from the Preset event the associated target position in RA/DEC, convert them into ALT/AZ and sends a Move command to the telescope axes.

Parameters
[in]last_eventLast event received which should be a Start event.
void exmalserver::ActionsPreset::Status ( const rad::AnyEvent last_event)

Test partial replies by sending a fake preset status.

Parameters
[in]last_eventGetPresetProgress event.
void exmalserver::ActionsPreset::Status ( const rad::AnyEvent last_event)

Test partial replies by sending a fake preset status.

Parameters
[in]last_eventGetPresetProgress event.
void exmalserver::ActionsPreset::Stop ( const rad::AnyEvent last_event)

Stops the current preset and replies:

  • 'preset aborted' to the originator of the Preset event.
  • OK to the originator of the Stop event.
Parameters
[in]last_eventStop event.
void exmalserver::ActionsPreset::Stop ( const rad::AnyEvent last_event)

Stops the current preset and replies:

  • 'preset aborted' to the originator of the Preset event.
  • OK to the originator of the Stop event.
Parameters
[in]last_eventStop event.
void exmalserver::ActionsPreset::Timeout ( const rad::AnyEvent last_event)

Replies ERROR timeout to the originator of the Preset event.

Parameters
[in]last_eventMoveTimeout event.
void exmalserver::ActionsPreset::Timeout ( const rad::AnyEvent last_event)

Replies ERROR timeout to the originator of the Preset event.

Parameters
[in]last_eventMoveTimeout event.

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