MCCS Master Leaf Node

class tmcprototype.mccsmasterleafnode.src.mccsmasterleafnode.mccs_master_leaf_node.MccsMasterLeafNode(*args, **kwargs)

Device Properties:

MccsMasterFQDN:Property to provide FQDN of MCCS Master Device

Attributes:

MccsHealthState:
 Forwarded attribute to provide MCCS Master Health State
ActivityMessage:
 String providing information about the current activity in MccsMasterLeafNode.
class tmcprototype.mccsmasterleafnode.src.mccsmasterleafnode.assign_resources_command.AssignResources(*args, **kwargs)

A class for MccsMasterLeafNode’s AssignResources() command.

It accepts stationiDList list, channels and stationBeamiDList in JSON string format and invokes allocate command on MccsMaster with JSON string as an input argument.
do(argin)

Method to invoke AssignResources command on Subarray.

Parameters:argin – StringType. The string in JSON format.
Example:
{
“subarray_id”: 1, “station_ids”:[1,2], “channels”: [[[0,8,1,1],[8,8,2,1],[24,16,2,1]], “station_beam_ids”: [1]

}

Note: Enter the json string without spaces as an input.

Returns:None
Raises:ValueError if input argument json string contains invalid value KeyError if input argument json string contains invalid key DevFailed if the command execution is not successful
class tmcprototype.mccsmasterleafnode.src.mccsmasterleafnode.off_command.Off(*args, **kwargs)

A class for MccsMasterLeafNode’s Off() command. Off command is inherited from SKABaseDevice.

It Sets the OpState to Off.

do()

Method to invoke Off command on the MCCS.

Parameters:argin – None.
Returns:A tuple containing a return code and a string message indicating status. The message is for information purpose only.
Return type:(ResultCode, str)
class tmcprototype.mccsmasterleafnode.src.mccsmasterleafnode.on_command.On(*args, **kwargs)

A class for MccsMasterLeafNode’s On() command. On command is inherited from SKABaseDevice.

It Sets the OpState to On.

do()

Method to invoke On command on the MCCS.

Parameters:argin – None
Returns:A tuple containing a return code and a string message indicating status. The message is for information purpose only.
Return type:(ResultCode, str)
class tmcprototype.mccsmasterleafnode.src.mccsmasterleafnode.release_resources_command.ReleaseResources(*args, **kwargs)

A class for MccsMasterLeafNode’s ReleaseResources() command.

It invokes ReleaseResources command on MccsMaster and releases all the resources assigned to MccsMaster.

do(argin)

Method to invoke ReleaseResources command on Subarray.

Parameters:argin – StringType. The string in JSON format.
Example:
{
“subarray_id”: 1, “release_all”: true

}

Returns:

None.

Raises:

DevFailed if the command execution is not successful

ValueError if invalid json string.