HLCC Documentation 2.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
hlcc::eltpk::ActionsCommands Class Reference

#include <actionsCommands.hpp>

Inheritance diagram for hlcc::eltpk::ActionsCommands:

Public Member Functions

 ActionsCommands (rad::Application &sm, ActionMgr &action_mgr, DataContext &data)
 
void Initialize () override
 
void Configure (const std::vector< std::string > &keys) override
 
void StopInit (scxml4cpp::Context *c)
 
void MovingTo (scxml4cpp::Context *c)
 
void StopMoving (scxml4cpp::Context *c)
 
void Preset (scxml4cpp::Context *c)
 
void SkyOffset (scxml4cpp::Context *c)
 
void SetObservingWavelength (scxml4cpp::Context *c)
 
void StopTracking (scxml4cpp::Context *c)
 
void LoadConfiguration (scxml4cpp::Context *c)
 
 ActionsCommands (const ActionsCommands &)=delete
 
ActionsCommandsoperator= (const ActionsCommands &)=delete
 Disable copy constructor.
 

Detailed Description

This class contains the implementation of the actions to initialize and configure (with boilerplate code implemented by RAD), and all actions dealing with the "non-standard" commands (events created in commandsImpl.hpp):

Constructor & Destructor Documentation

◆ ActionsCommands() [1/2]

hlcc::eltpk::ActionsCommands::ActionsCommands ( rad::Application & sm,
ActionMgr & action_mgr,
DataContext & data )

Constructor.

Parameters
[in]smReference to the SM Adapter used to inject internal events.
[in]action_mgrReference to the ActionMgr
[in]dataData shared within the application among actions and activities.

◆ ActionsCommands() [2/2]

hlcc::eltpk::ActionsCommands::ActionsCommands ( const ActionsCommands & )
delete

Member Function Documentation

◆ Configure()

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

Method invoked when SetConfig or LoadConfig command is received to re-configure the actions class attributes.

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

◆ Initialize()

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

Method invoked when Init command is received to re-initialize the actions class attributes.

◆ LoadConfiguration()

void hlcc::eltpk::ActionsCommands::LoadConfiguration ( scxml4cpp::Context * c)

Implementation of the LoadConfiguration action. This action:

  • Loads the configuration from local default configuration file. This gets called after reset command, and overwrites overlapping previous config changes.
  • Applies command line options
  • updates Oldb
Parameters
[in]cContext containing the last event received by the State Machine.

◆ MovingTo()

void hlcc::eltpk::ActionsCommands::MovingTo ( scxml4cpp::Context * c)

Implementation of the MovingTo action. This action:

  • replies back for the originator of the SetTargetAltAzPos request with the current configuration.
  • writes the new target coordinate into the DataContext.
    Parameters
    [in]cContext containing the last event received by the State Machine.

◆ operator=()

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

Disable copy constructor.

◆ Preset()

void hlcc::eltpk::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.

◆ SetObservingWavelength()

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

Implementation of the SetObservingWavelength action. This action:

  • Set the current wavelength at which the instrument defines the pointing origin in [m].
  • 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::eltpk::ActionsCommands::SkyOffset ( scxml4cpp::Context * c)

◆ StopInit()

void hlcc::eltpk::ActionsCommands::StopInit ( scxml4cpp::Context * c)

Implementation of the ActionsInit.Stop action. This action:

  • replies back for the originator of the SetTargetAltAzPos request with the current configuration.
  • writes the new target coordinate into the DataContext.
    Parameters
    [in]cContext containing the last event received by the State Machine.

◆ StopMoving()

void hlcc::eltpk::ActionsCommands::StopMoving ( scxml4cpp::Context * c)

Impl of SM ActionsStopMoving, which is called when EventsStd.Stop event is sent in any of the On::Operational states.

◆ StopTracking()

void hlcc::eltpk::ActionsCommands::StopTracking ( scxml4cpp::Context * c)

Implementation of the StopTracking action. This action forwards the call to LSV MS.

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

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