hlcc 2.0.0-beta2+pre1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
hlcc::telifsim::ActionsCommands Class Reference

#include <actionsCommands.hpp>

Inheritance diagram for hlcc::telifsim::ActionsCommands:

Public Member Functions

 ActionsCommands (rad::Application &appl, ActionMgr &action_mgr, DataContext &data)
 
void Initialize () override
 
void Configure (const std::vector< std::string > &keys) override
 
void Preset (scxml4cpp::Context *c)
 
void SetObservingWavelength (scxml4cpp::Context *c)
 
void SetVelocityOffset (scxml4cpp::Context *c)
 
void SkyOffset (scxml4cpp::Context *c)
 
void SetReferenceFocus (scxml4cpp::Context *c)
 
void SetReferenceAberration (scxml4cpp::Context *c)
 
void RequestControl (scxml4cpp::Context *c)
 
void ReleaseControl (scxml4cpp::Context *c)
 
void GetConfig (scxml4cpp::Context *c)
 
void RousConfig (scxml4cpp::Context *c)
 
void RousExecute (scxml4cpp::Context *c)
 
void RousActivityEntry (scxml4cpp::Context *c)
 
void RousActivityExit (scxml4cpp::Context *c)
 
void ReadyForHandoverEstimation (scxml4cpp::Context *c)
 
 ActionsCommands (const ActionsCommands &)=delete
 
ActionsCommandsoperator= (const ActionsCommands &)=delete
 Disable copy constructor.
 

Detailed Description

This class contains the implementation of the actions dealing with the following "standard" commands:

GCH TODO: add all commands in the ICD. Now only an example

Constructor & Destructor Documentation

◆ ActionsCommands() [1/2]

hlcc::telifsim::ActionsCommands::ActionsCommands ( rad::Application &  appl,
ActionMgr action_mgr,
DataContext data 
)

Constructor.

Parameters
[in]applReference to the rad-app application.
[in]action_mgraction manager
[in]dataData shared within the application among actions and activities.

◆ ActionsCommands() [2/2]

hlcc::telifsim::ActionsCommands::ActionsCommands ( const ActionsCommands )
delete

Member Function Documentation

◆ Configure()

void hlcc::telifsim::ActionsCommands::Configure ( const std::vector< std::string > &  keys)
override

This method allows to re-configure the member attributes of this class. It is usually invoked as consequence of an LoadConfig or SetConfig commands.

Parameters
keysModified parameters. Empty vector means all params have changed.

◆ GetConfig()

void hlcc::telifsim::ActionsCommands::GetConfig ( scxml4cpp::Context *  c)

Implementation of Instruments GetConfig action.

  • replies back with the succes of operation
Parameters
[in]cContext containing the last event received by the State Machine.

◆ Initialize()

void hlcc::telifsim::ActionsCommands::Initialize ( )
override

This method allows to re-initialize the member attributes of this class. It is usually invoked as consequence of an Init command.

◆ operator=()

ActionsCommands & hlcc::telifsim::ActionsCommands::operator= ( const ActionsCommands )
delete

Disable copy constructor.

◆ Preset()

void hlcc::telifsim::ActionsCommands::Preset ( scxml4cpp::Context *  c)

Implementation of the Preset action. This action:

  • replies back for the originator of the Preset request with the current configuration
Parameters
[in]cContext containing the last event received by the State Machine.

◆ ReadyForHandoverEstimation()

void hlcc::telifsim::ActionsCommands::ReadyForHandoverEstimation ( scxml4cpp::Context *  c)

Run the Ready for handover estimation

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

◆ ReleaseControl()

void hlcc::telifsim::ActionsCommands::ReleaseControl ( scxml4cpp::Context *  c)

Implementation of Instruments ReleaseControl action.

  • replies back with the succes of operation
Parameters
[in]cContext containing the last event received by the State Machine.

◆ RequestControl()

void hlcc::telifsim::ActionsCommands::RequestControl ( scxml4cpp::Context *  c)

Implementation of Instruments RequestControl action.

  • replies back with the succes of operation which is based in the information if the telescope is ready for handover.
Parameters
[in]cContext containing the last event received by the State Machine.

◆ RousActivityEntry()

void hlcc::telifsim::ActionsCommands::RousActivityEntry ( scxml4cpp::Context *  c)

Clear and prepare variables, states before ROUS activity starts. Internal event only

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

◆ RousActivityExit()

void hlcc::telifsim::ActionsCommands::RousActivityExit ( scxml4cpp::Context *  c)

Clear variables and publish in Oldb final values after ROUS activity stops. Internal event only

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

◆ RousConfig()

void hlcc::telifsim::ActionsCommands::RousConfig ( scxml4cpp::Context *  c)

Implementation of RousConfig action.

  • Disables/Enables the the automatic execution of ROUS maneuvers by CCS
  • replies back with the succes of operation
Parameters
[in]cContext containing the last event received by the State Machine.

◆ RousExecute()

void hlcc::telifsim::ActionsCommands::RousExecute ( scxml4cpp::Context *  c)

Implementation of RousExecute action.

  • Executes a ROUS maneuver immediately
  • replies back with the succes of operation
Parameters
[in]cContext containing the last event received by the State Machine.

◆ SetObservingWavelength()

void hlcc::telifsim::ActionsCommands::SetObservingWavelength ( scxml4cpp::Context *  c)

Implementation of the SetObservingWavelength action. This action:

  • Sets the current wavelength at which the instrument defines the pointing origin, in [m]. The value is both forwarded to eltpk and written to the OLDB.
  • replies back for the originator of the request with the success of the combined operation.
Parameters
[in]cContext containing the last event received by the State Machine.

◆ SetReferenceAberration()

void hlcc::telifsim::ActionsCommands::SetReferenceAberration ( scxml4cpp::Context *  c)

Implementation of the SetReferenceAberration action. This action:

  • ...
  • replies back for the originator of the request with the success of the operation.
Parameters
[in]cContext containing the last event received by the State Machine.

◆ SetReferenceFocus()

void hlcc::telifsim::ActionsCommands::SetReferenceFocus ( scxml4cpp::Context *  c)

Implementation of the SetReferenceFocus action. This action:

  • ...
  • replies back for the originator of the request with the success of the operation.
Parameters
[in]cContext containing the last event received by the State Machine.

◆ SetVelocityOffset()

void hlcc::telifsim::ActionsCommands::SetVelocityOffset ( scxml4cpp::Context *  c)

Implementation of the SetVelocityOffset action. This action:

  • Set the the velocity offset if the flag ready_fo_handover is true.
  • replies back for the originator of the request with the success of the operation.
Parameters
[in]cContext containing the last event received by the State Machine.

◆ SkyOffset()

void hlcc::telifsim::ActionsCommands::SkyOffset ( scxml4cpp::Context *  c)

Implementation of the SkyOffset action. This action:

  • Set the the OffsetSkyArgs if the flag ready_fo_handover is true and forwards it to the eltpk.
  • replies back for the originator of the request with the success of the operation.
Parameters
[in]cContext containing the last event received by the State Machine.

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