Helper_CSP_Master_Leaf_Node
This module defines a helper device that acts as csp master in our testing.
- class ska_tmc_simulators.helper_csp_master_leaf_node.HelperCspMasterLeafDevice(*args: Any, **kwargs: Any)
Bases:
HelperBaseDeviceA helper device class for Csp Master Leaf device
- InitCommand = None
- init_device() None
- memorizedDishVccMap(value: str)
Set memorized dish vcc map
- Parameters:
value – dish vcc config json string
- Type:
str
- read_sourceDishVccConfig() str
This method reads the sourceDishVccConfig value of the dish.
- Returns:
sourceDishVccConfig value of the dish
- Return type:
str
- read_dishVccConfig() str
This method reads the dishVccConfig value of the dish.
- Returns:
dishVccConfig value of the dish
- Return type:
str
- read_DishVccMapValidationResult() str
- Returns:
DishVccMapValidationResult value of the dish
- Return type:
str
- read_cspControllerAdminMode() int
Reads the current admin mode of the CSP controller
- Returns:
obs state
- SetCspControllerAdminMode(argin: int) None
Trigger a admin mode change
- Parameters:
argin – adminMode enum to set the admin mode.
- Dtype:
int
- ResetSysParams() Tuple[List[ska_tango_base.commands.ResultCode], List[str]]
This Command Reset dishVccConfig and sourceDishVccConfig attribute
- Returns:
ResultCode and message
- is_LoadDishCfg_allowed() bool
This method checks if the LoadDishCfg command is allowed in current state.
- Returns:
Trueif the command is allowed- Return type:
bool
- LoadDishCfg(argin: str) Tuple[List[ska_tango_base.commands.ResultCode], List[str]]
This command updates attribute sourceDishVccConfig and dishVccConfig
- Returns:
ResultCode and message
- Return type:
Tuple
- Parameters:
argin – json with File URI.
- Dtype:
str
- Example argin:
{ “interface”: “https://schema.skao.int/ska-mid-cbf-initial-parameters/2.2”,
“tm_data_sources”: [tm_data_sources] #The data source that is used to store the data and is accessible through the Telescope Model
“tm_data_filepath”: “path/to/file.json” #The path to the json file containing the Mid.CBF initialization parameters within the data source
}
- SetDishVccValidationResult(result: str) Tuple[List[ska_tango_base.commands.ResultCode], List[str]]
Set DishVccValidationResult and push event for same
- Returns:
ResultCode and message
- push_dish_vcc_validation_result()
Push Dish Vcc Validation result event If memorized dish vcc already set then push Result Code as OK else push result code event as UNKNOWN
- start_dish_vcc_validation()
Push Dish Vcc Validation result after Initialization