FNDH device
This module implements the MCCS FNDH device.
- class MccsFNDH(*args, **kwargs)
An implementation of the FNDH device for MCCS.
- ClearThresholdCache()
Clear the threshold caches.
- Configure(overCurrentThreshold=None, overVoltageThreshold=None, humidityThreshold=None)
Configure the Fndh device attributes.
- Parameters:
- Return type:
tuple[list[ResultCode],list[str]]- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- PortPowerState(port_id)
Check power state of a port.
- Parameters:
port_id (
int) – the port number (1-28)- Return type:
- Returns:
The power state of the port.
- PowerOffPort(port_number)
Power down a port.
This may or may not have a Antenna attached.
- Parameters:
port_number (
int) – the port to power down.- Return type:
TaskFunctionType- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purposes only.
- PowerOnPort(port_number)
Power up a port.
This may or may not have a Antenna attached.
- Parameters:
port_number (
int) – the port to power up.- Return type:
TaskFunctionType- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purposes only.
- SetPortPowers(json_argument)
Set port powers.
These ports will not have a smartbox attached.
- Parameters:
json_argument (
str) – desired port powers of unmasked ports with smartboxes attached in json form.- Return type:
TaskFunctionType- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purposes only.
- UpdateThresholdCache()
Update the threshold caches.
- __init__(*args, **kwargs)
Initialise this device object.
- create_component_manager()
Create and return a component manager for this device.
- Return type:
- Returns:
a component manager for this device.
- execute_On()
Execute the On command.
- Return type:
TaskFunctionType- Returns:
the callable function.
- execute_Standby()
Execute the Standby command.
- Return type:
TaskFunctionType- Returns:
the callable function.
- healthModelParams(argin)
Set the params for health transition rules.
- healthRuleVersion(value)
Set the HealthRuleVersion to use.
- Parameters:
value (
str) – new version to use. Currenly support v0 or v1- Raises:
ValueError – when attempting to set a version not supported.
- Return type:
- humidityThreshold(value)
Set the humidityThreshold attribute.
- init_device()
Initialise the device.
This is overridden here to change the Tango serialisation model.
- Return type:
- is_engineering()
Return a flag representing whether we are in Engineering mode.
- Return type:
- Returns:
True if FNDH is in Engineering Mode.
- is_firmware_threshold_allowed(req_type)
Return a flag representing whether we are allowed to access the attribute.
- Parameters:
req_type (
AttReqType) – the request type- Return type:
- Returns:
True if access is allowed.
- numberOfStuckOffSmartboxPorts()
Return the total number of stuck off smartbox ports.
This is used for alarm configuration.
- numberOfStuckOnSmartboxPorts()
Return the total number of stuck on smartbox ports.
This is used for alarm configuration.
- overCurrentThreshold(value)
Set the overCurrentThreshold attribute.
- overVoltageThreshold(value)
Set the overVoltageThreshold attribute.
- portsWithSmartbox(port_numbers)
Set the ports with smartbox attached.
- Parameters:
port_numbers (
list[int]) – the port numbers with a smartbox attached.- Raises:
ValueError – if the number of smartbox exceeds the maximum allowed for a station.
- Return type:
- thresholdDifferences()
Return the differences between threshold values.
- Return type:
- Returns:
Return the differences between threshold values.