hlcc 2.0.0-beta2+pre1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
MonScripts.SegmentExchangeModeEstimation.SegmentExchangeModeEstimation Class Reference

Segment exchange mode estimation. More...

Public Member Functions

def __init__ (self, p_configuration)
 SegmentExchangeModeEstimation Class Initializer.
 
def configure_logging (self, logger_name)
 Set the log level to be close to the one set in C++ Maps C++ log4cpp log levels to python log levels.
 
def Execute (self, arg)
 Perform Segment Exchange Mode Estimation.
 
def Terminate (self, arg)
 Set the correct Ccs state when the telmon application is about to exit.
 
bool confirm_telescope_position (self, str position_name)
 Confirms if the telescope current position matches the position which name is given as parameter.
 
bool confirm_process_state (self, str current_state, list[str] list_accepted_states)
 Check if the current eltpk state is a match with any of the states in the list.
 
def updates_segment_exchange_mode_status_in_oldb (self, bool current_status)
 Publishes in the Oldb the current Segment Exchange Mode Status.
 

Public Attributes

 configuration
 
 oldb_client
 
 eltpk_state_dp
 
 segexmgr_state_dp
 
 curr_obs_alt_az_dp
 
 telmon_segexmd_dp
 
 telifsim_tel_named_positions_dp
 
 logger
 

Detailed Description

Segment exchange mode estimation.

Constructor & Destructor Documentation

◆ __init__()

def MonScripts.SegmentExchangeModeEstimation.SegmentExchangeModeEstimation.__init__ (   self,
  p_configuration 
)

SegmentExchangeModeEstimation Class Initializer.

Parameters
Dictionarywith Application configuration

Member Function Documentation

◆ configure_logging()

def MonScripts.SegmentExchangeModeEstimation.SegmentExchangeModeEstimation.configure_logging (   self,
  logger_name 
)

Set the log level to be close to the one set in C++ Maps C++ log4cpp log levels to python log levels.

◆ confirm_process_state()

bool MonScripts.SegmentExchangeModeEstimation.SegmentExchangeModeEstimation.confirm_process_state (   self,
str  current_state,
list[str]  list_accepted_states 
)

Check if the current eltpk state is a match with any of the states in the list.

◆ confirm_telescope_position()

bool MonScripts.SegmentExchangeModeEstimation.SegmentExchangeModeEstimation.confirm_telescope_position (   self,
str  position_name 
)

Confirms if the telescope current position matches the position which name is given as parameter.

For this purpose we will get the Telescope named positions from the 'telifsim' configuration in Oldb and compare the current telescope position with corespondent given named position.

◆ Execute()

def MonScripts.SegmentExchangeModeEstimation.SegmentExchangeModeEstimation.Execute (   self,
  arg 
)

Perform Segment Exchange Mode Estimation.

◆ Terminate()

def MonScripts.SegmentExchangeModeEstimation.SegmentExchangeModeEstimation.Terminate (   self,
  arg 
)

Set the correct Ccs state when the telmon application is about to exit.

◆ updates_segment_exchange_mode_status_in_oldb()

def MonScripts.SegmentExchangeModeEstimation.SegmentExchangeModeEstimation.updates_segment_exchange_mode_status_in_oldb (   self,
bool  current_status 
)

Publishes in the Oldb the current Segment Exchange Mode Status.

Member Data Documentation

◆ configuration

MonScripts.SegmentExchangeModeEstimation.SegmentExchangeModeEstimation.configuration

◆ curr_obs_alt_az_dp

MonScripts.SegmentExchangeModeEstimation.SegmentExchangeModeEstimation.curr_obs_alt_az_dp

◆ eltpk_state_dp

MonScripts.SegmentExchangeModeEstimation.SegmentExchangeModeEstimation.eltpk_state_dp

◆ logger

MonScripts.SegmentExchangeModeEstimation.SegmentExchangeModeEstimation.logger

◆ oldb_client

MonScripts.SegmentExchangeModeEstimation.SegmentExchangeModeEstimation.oldb_client

◆ segexmgr_state_dp

MonScripts.SegmentExchangeModeEstimation.SegmentExchangeModeEstimation.segexmgr_state_dp

◆ telifsim_tel_named_positions_dp

MonScripts.SegmentExchangeModeEstimation.SegmentExchangeModeEstimation.telifsim_tel_named_positions_dp

◆ telmon_segexmd_dp

MonScripts.SegmentExchangeModeEstimation.SegmentExchangeModeEstimation.telmon_segexmd_dp

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