rad  3.0.0
Public Member Functions | List of all members
exmalserver::ActionsPreset Class Reference

#include <actionsPreset.hpp>

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

Public Member Functions

 ActionsPreset (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)
 
void Timeout (scxml4cpp::Context *c)
 
void Monitor (scxml4cpp::Context *c)
 
void Status (scxml4cpp::Context *c)
 
 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 (scxml4cpp::Context *c)
 
void Stop (scxml4cpp::Context *c)
 
void Done (scxml4cpp::Context *c)
 
void Err (scxml4cpp::Context *c)
 
void Timeout (scxml4cpp::Context *c)
 
void Monitor (scxml4cpp::Context *c)
 
void Status (scxml4cpp::Context *c)
 
 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

◆ ActionsPreset() [1/4]

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.

◆ ActionsPreset() [2/4]

exmalserver::ActionsPreset::ActionsPreset ( const ActionsPreset )
delete

◆ ActionsPreset() [3/4]

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.

◆ ActionsPreset() [4/4]

exmalserver::ActionsPreset::ActionsPreset ( const ActionsPreset )
delete

Member Function Documentation

◆ Done() [1/2]

void exmalserver::ActionsPreset::Done ( scxml4cpp::Context c)

Replies OK to the originator of the Preset event.

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

◆ Done() [2/2]

void exmalserver::ActionsPreset::Done ( scxml4cpp::Context c)

Replies OK to the originator of the Preset event.

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

◆ Err() [1/2]

void exmalserver::ActionsPreset::Err ( scxml4cpp::Context c)

Replies ERR to the originator of the Preset event.

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

◆ Err() [2/2]

void exmalserver::ActionsPreset::Err ( scxml4cpp::Context c)

Replies ERR to the originator of the Preset event.

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

◆ Monitor() [1/2]

void exmalserver::ActionsPreset::Monitor ( scxml4cpp::Context c)

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

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

◆ Monitor() [2/2]

void exmalserver::ActionsPreset::Monitor ( scxml4cpp::Context c)

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

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

◆ operator=() [1/2]

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

Disable copy constructor.

◆ operator=() [2/2]

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

Disable copy constructor.

◆ Start() [1/2]

void exmalserver::ActionsPreset::Start ( scxml4cpp::Context c)

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]cContext containing the last event received by the State Machine.

◆ Start() [2/2]

void exmalserver::ActionsPreset::Start ( scxml4cpp::Context c)

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]cContext containing the last event received by the State Machine.

◆ Status() [1/2]

void exmalserver::ActionsPreset::Status ( scxml4cpp::Context c)

Test partial replies by sending a fake preset status.

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

◆ Status() [2/2]

void exmalserver::ActionsPreset::Status ( scxml4cpp::Context c)

Test partial replies by sending a fake preset status.

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

◆ Stop() [1/2]

void exmalserver::ActionsPreset::Stop ( scxml4cpp::Context c)

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]cContext containing the last event received by the State Machine.

◆ Stop() [2/2]

void exmalserver::ActionsPreset::Stop ( scxml4cpp::Context c)

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]cContext containing the last event received by the State Machine.

◆ Timeout() [1/2]

void exmalserver::ActionsPreset::Timeout ( scxml4cpp::Context c)

Replies ERROR timeout to the originator of the Preset event.

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

◆ Timeout() [2/2]

void exmalserver::ActionsPreset::Timeout ( scxml4cpp::Context c)

Replies ERROR timeout to the originator of the Preset event.

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

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