Central Node

class tmcprototype.centralnodelow.src.centralnodelow.central_node_low.CentralNode(*args, **kwargs)

Central Node is a coordinator of the complete M&C system.

Device Properties:
 
CentralAlarmHandler:

Device name of CentralAlarmHandler

TMAlarmHandler:

Device name of TMAlarmHandler

TMLowSubarrayNodes:

List of TM Low Subarray Node devices

MCCSMasterLeafNodeFQDN:

FQDN of Mccs Master Leaf Node.

Device Attributes:
 
telescopeHealthState:

Health state of Telescope

subarray1HealthState:

Health state of SubarrayNode1

activityMessage:

String providing information about the current activity in Central Node.

class tmcprototype.centralnodelow.src.centralnodelow.assign_resources_command.AssignResources(*args, **kwargs)

A class for CentralNode’s AssignResources() command.

Assigns resources to given subarray. It accepts the subarray id, station ids, station beam id and channels in JSON string format.

do(argin)

Method to invoke AssignResources command on Subarray.

Parameters:argin

The string in JSON format. The JSON contains following values:

subarray_id:
DevShort. Mandatory. Sub-Array to allocate resources to
station_ids:
DevArray. Mandatory list of stations contributing beams to the data set
channels:
DevArray. Mandatory list of frequency channels used
station_beam_ids:
DevArray. Mandatory logical ID of beam
Example:
{“mccs”:{“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 input without spaces as:{“subarray_id”:1,”station_ids”:[1,2],”channels”:[1,2,3,4,5,6,7,8],”station_beam_ids”:[1]}

return:
None
raises:

KeyError if input argument json string contains invalid key

ValueError if input argument json string contains invalid value

AssertionError if Mccs On command is not completed.

class tmcprototype.centralnodelow.src.centralnodelow.release_resources_command.ReleaseResources(*args, **kwargs)

A class for CentralNodeLow’s ReleaseResources() command.

Release all the resources assigned to the given Subarray. It accepts the subarray id, release_all flag in JSON string format. When the release_all flag is True, ReleaseAllResources command is invoked on the respective SubarrayNode.

do(argin)

Method to invoke ReleaseResources command on Subarray Node.

Parameters:argin

The string in JSON format. The JSON contains following values:

subarray_id:
DevShort. Mandatory.
release_all:
Boolean(True or False). Mandatory. True when all the resources to be released from Subarray.
Example:
{“mccs”:{“subarray_id”:1,”release_all”:true}}
Note: From Jive, enter input as:
{“mccs”:{“subarray_id”:1,”release_all”:true}} without any space.
return:
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 or command invocation on SubarrayNode is not successful

class tmcprototype.centralnodelow.src.centralnodelow.standby_telescope_command.StandByTelescope(*args, **kwargs)

A class for Low CentralNode’s StandByTelescope() command.

Sets the CentralNodeLow into OFF state. Invokes the respective command on lower level nodes and devices.

do()

Method to invoke StandBy command.

param argin: None.

return:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
rtype:
(ResultCode, str)
raises:
AssertionError if Mccs On command is not completed.
class tmcprototype.centralnodelow.src.centralnodelow.startup_telescope_command.StartUpTelescope(*args, **kwargs)

A class for Low CentralNode’s StartupCommand() command.

StartUpTelescope command on Central Node Low enables the telescope to perform further operations and observations. It Invokes On command on lower level devices.

do()

Method to invoke ON command On lower level devices.

param argin:
None.
return:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
rtype:
(ResultCode, str)
raises:
AssertionError if f Mccs Off command is not completed.