VccUnitComponentManager Class

class ska_mid_cbf_mcs.vcc_unit.vcc_unit_component_manager.VccUnitComponentManager(*args: Any, **kwargs: Any)[source]

Bases: CbfComponentManager

Component manager for Vcc Unit.

start_communicating(*args: Any, admin_mode: AdminMode, **kwargs: Any) None[source]

Establish communication with the component, then start monitoring.

stop_communicating(*args: Any, admin_mode: AdminMode, **kwargs: Any) None[source]

Thread for stop_communicating operation.

property resource_status: str

Getter Function for resource_status When the variable is called, updates _resource_status and return its value

Returns:

A JSON string representation of VCC’s Resource Status

Return type:

str

get_resource_status() str[source]

Retrieves the the resource status from all available VCC devices and format it into a ResourceStatus VCC Status Object JSON string.

Retrieves the following from the VCC devices:

  • used_by_subarray: The subarray that is using the VCC

  • health_state: HealthState of the VCC

  • admin_mode: AdminMode of the VCC

  • vcc_unit_id: This VCC Unit’s ID

Parameters:

vcc_unit_id – Device ID of the this VCC Unit

Returns:

a JSON string

Return type:

str