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

#include <actionsSimCmds.hpp>

Inheritance diagram for hlcc::telifsim::ActionsSimCmds:

Public Member Functions

 ActionsSimCmds (rad::Application &appl, ActionMgr &action_mgr, DataContext &data)
 
void Initialize () override
 
void Configure (const std::vector< std::string > &keys) override
 
void MoveToNamedPos (scxml4cpp::Context *c)
 
void MoveToAltAzPos (scxml4cpp::Context *c)
 
void UpdateRousTimer (scxml4cpp::Context *c)
 
void LoadConfiguration (scxml4cpp::Context *c)
 
void SetPresetSequenceMode (scxml4cpp::Context *c)
 
void SetPresetSequence (scxml4cpp::Context *c)
 
void SetOffsetSequenceMode (scxml4cpp::Context *c)
 
void SetOffsetSequence (scxml4cpp::Context *c)
 
 ActionsSimCmds (const ActionsSimCmds &)=delete
 
ActionsSimCmdsoperator= (const ActionsSimCmds &)=delete
 Disable copy constructor.
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ActionsSimCmds() [1/2]

hlcc::telifsim::ActionsSimCmds::ActionsSimCmds ( 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.

◆ ActionsSimCmds() [2/2]

hlcc::telifsim::ActionsSimCmds::ActionsSimCmds ( const ActionsSimCmds )
delete

Member Function Documentation

◆ Configure()

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

◆ Initialize()

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

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

◆ LoadConfiguration()

void hlcc::telifsim::ActionsSimCmds::LoadConfiguration ( scxml4cpp::Context *  c)

Implementation of the LoadConfiguration action. This action:

  • Loads the configuration from local configuration file.
  • Applies command line options
  • updates Oldb
Parameters
[in]cContext containing the last event received by the State Machine.

◆ MoveToAltAzPos()

void hlcc::telifsim::ActionsSimCmds::MoveToAltAzPos ( scxml4cpp::Context *  c)

Implementation of the Preset action. This action:

  • receives the AltAz coordinates and sends it to pointing kernel.
  • replies back for the originator of the MoveToNamedPos MoveToAltAzPos.
Parameters
[in]cContext containing the last event received by the State Machine.

◆ MoveToNamedPos()

void hlcc::telifsim::ActionsSimCmds::MoveToNamedPos ( scxml4cpp::Context *  c)

Implementation of the MoveToNamedPos action. This action:

  • receives the name o telescope position, lookup in table for coorespondent AltAz and sends it to pointing kernel.
  • replies back for the originator of the MoveToNamedPos command.
Parameters
[in]cContext containing the last event received by the State Machine.

◆ operator=()

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

Disable copy constructor.

◆ SetOffsetSequence()

void hlcc::telifsim::ActionsSimCmds::SetOffsetSequence ( scxml4cpp::Context *  c)

Implement the SetOffsetSequence action

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

◆ SetOffsetSequenceMode()

void hlcc::telifsim::ActionsSimCmds::SetOffsetSequenceMode ( scxml4cpp::Context *  c)

Implement the SetOffsetMode action

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

◆ SetPresetSequence()

void hlcc::telifsim::ActionsSimCmds::SetPresetSequence ( scxml4cpp::Context *  c)

Implement the SetPresetSequence action

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

◆ SetPresetSequenceMode()

void hlcc::telifsim::ActionsSimCmds::SetPresetSequenceMode ( scxml4cpp::Context *  c)

Implement the SetPresetMode action

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

◆ UpdateRousTimer()

void hlcc::telifsim::ActionsSimCmds::UpdateRousTimer ( scxml4cpp::Context *  c)

Implementation of the UpdateRousTimer action. This action:

  • receives the new time to update the Rou timer.
  • replies back for the originator with success of operation.
Parameters
[in]cContext containing the last event received by the State Machine.

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