LowTmcLeafNodeMccs Tango Device

LowTmcLeafNodeMccs class acts as an MCCS contact point for the Master Node and also to monitor and issue commands to the MCCS Master.

Properties

LowTmcLeafNodeMccs.AdapterTimeOut
Data type:

DevFloat

Default value:

2

LowTmcLeafNodeMccs.CommandTimeOutDefault
Data type:

DevFloat

Default value:

30

LowTmcLeafNodeMccs.EventSubscriptionCheckPeriod
Data type:

DevFloat

Default value:

1

LowTmcLeafNodeMccs.GroupDefinitions
Data type:

DevVarStringArray

LowTmcLeafNodeMccs.LivelinessCheckPeriod
Data type:

DevFloat

Default value:

1

LowTmcLeafNodeMccs.LoggingLevelDefault
Data type:

DevUShort

Default value:

4

LowTmcLeafNodeMccs.LoggingTargetsDefault
Data type:

DevVarStringArray

Default value:

[‘tango::logger’]

LowTmcLeafNodeMccs.MccsMasterFQDN

FQDN of the MCCS Master Tango Device Server.

Data type:

DevString

LowTmcLeafNodeMccs.SkaLevel
Data type:

DevShort

Default value:

4

Attributes

LowTmcLeafNodeMccs.State

The operational state of the device as enumeration.

Access:

READ

Data type:

DevState

Data format:

SCALAR

LowTmcLeafNodeMccs.Status

More detailed textual information about the device’s status.

Access:

READ

Data type:

DevString

Data format:

SCALAR

LowTmcLeafNodeMccs.adminMode

The Admin Mode of the device. It may interpret the current device condition and condition of all managed devices to set this. Most possibly an aggregate attribute.

Access:

READ_WRITE

Data type:

DevEnum

Data format:

SCALAR

LowTmcLeafNodeMccs.buildState

Read the Build State of the device.

Returns:

the build state of the device

Access:

READ

Data type:

DevString

Data format:

SCALAR

LowTmcLeafNodeMccs.commandTimeOut

Command execution time limit.

Access:

READ_WRITE

Data type:

DevUShort

Data format:

SCALAR

LowTmcLeafNodeMccs.commandedState

The last commanded Operating State of the device. Initial string is “None”. Only other strings it can change to is “OFF”, “STANDBY” or “ON”, following the Off(), Standby() or On() commands. If the state transition commands are long running commands the commanded state will only update when the long running command starts executing.

Access:

READ

Data type:

DevString

Data format:

SCALAR

LowTmcLeafNodeMccs.controlMode

The control mode of the device are REMOTE, LOCAL Tango Device accepts only from a ‘local’ client and ignores commands and queries received from TM or any other ‘remote’ clients. The Local clients has to release LOCAL control before REMOTE clients can take control again.

Access:

READ_WRITE

Data type:

DevEnum

Data format:

SCALAR

LowTmcLeafNodeMccs.healthInfo

JSON string representing the health information.

Access:

READ

Data type:

DevString

Data format:

SCALAR

LowTmcLeafNodeMccs.healthState

Health state of the MCCS Master leaf node

Access:

READ

Data type:

DevEnum

Data format:

SCALAR

LowTmcLeafNodeMccs.isAdminModeEnabled

No description

Access:

READ_WRITE

Data type:

DevBoolean

Data format:

SCALAR

LowTmcLeafNodeMccs.isSubsystemAvailable

Boolean Flag for sub system available

Access:

READ

Data type:

DevBoolean

Data format:

SCALAR

LowTmcLeafNodeMccs.loggingLevel

Read the logging level of the device.

Initialises to LoggingLevelDefault on startup. See LoggingLevel

Returns:

Logging level of the device.

Access:

READ_WRITE

Data type:

DevEnum

Data format:

SCALAR

LowTmcLeafNodeMccs.loggingTargets

Read the additional logging targets of the device.

Note that this excludes the handlers provided by the ska_ser_logging library defaults - initialises to LoggingTargetsDefault on startup.

Returns:

Logging level of the device.

Access:

READ_WRITE

Data type:

DevString

Data format:

SPECTRUM

Max_dim_x:

4

LowTmcLeafNodeMccs.longRunningCommandIDsInQueue

Read the IDs of the long running commands in the queue.

Every client that executes a command will receive a command ID as response. Keep track of IDs currently allocated. Entries are removed self._command_tracker._removal_time seconds after they have finished.

Access:

READ

Data type:

DevString

Data format:

SPECTRUM

Max_dim_x:

66

LowTmcLeafNodeMccs.longRunningCommandInProgress

Read the name(s) of the currently executing long running command(s).

Name(s) of command and possible abort in progress or empty string(s).

Access:

READ

Data type:

DevString

Data format:

SPECTRUM

Max_dim_x:

2

LowTmcLeafNodeMccs.longRunningCommandProgress

Read the progress of the currently executing long running command(s).

ID, progress of the currently executing command(s). Clients can subscribe to on_change event and wait for the ID they are interested in.

Access:

READ

Data type:

DevString

Data format:

SPECTRUM

Max_dim_x:

4

LowTmcLeafNodeMccs.longRunningCommandResult

Read the result of the completed long running command.

Reports unique_id, json-encoded result. Clients can subscribe to on_change event and wait for the ID they are interested in.

Access:

READ

Data type:

DevString

Data format:

SPECTRUM

Max_dim_x:

2

LowTmcLeafNodeMccs.longRunningCommandStatus

Read the status of the currently executing long running commands.

ID, status pairs of the currently executing commands. Clients can subscribe to on_change event and wait for the ID they are interested in.

Access:

READ

Data type:

DevString

Data format:

SPECTRUM

Max_dim_x:

132

LowTmcLeafNodeMccs.longRunningCommandsInQueue

Read the long running commands in the queue.

Keep track of which commands are that are currently known about. Entries are removed self._command_tracker._removal_time seconds after they have finished.

Access:

READ

Data type:

DevString

Data format:

SPECTRUM

Max_dim_x:

66

LowTmcLeafNodeMccs.lrcExecuting

Expose a signal as a Tango attribute.

Access:

READ

Data type:

DevString

Data format:

SPECTRUM

Max_dim_x:

2

LowTmcLeafNodeMccs.lrcFinished

Expose a signal as a Tango attribute.

Access:

READ

Data type:

DevString

Data format:

SPECTRUM

Max_dim_x:

100

LowTmcLeafNodeMccs.lrcProtocolVersions

Return supported protocol versions.

Returns:

A tuple containing the lower and upper bounds of supported long running command protocol versions.

Access:

READ

Data type:

DevLong64

Data format:

SPECTRUM

Max_dim_x:

2

LowTmcLeafNodeMccs.lrcQueue

Expose a signal as a Tango attribute.

Access:

READ

Data type:

DevString

Data format:

SPECTRUM

Max_dim_x:

32

LowTmcLeafNodeMccs.mccsControllerAdminMode

MCCS Controller Admin Mode

Access:

READ

Data type:

DevEnum

Data format:

SCALAR

LowTmcLeafNodeMccs.mccsMasterDevName

Name of the MCCS Master device.

Access:

READ_WRITE

Data type:

DevString

Data format:

SCALAR

LowTmcLeafNodeMccs.simulationMode

When TRUE the device is using a simulator

Access:

READ_WRITE

Data type:

DevEnum

Data format:

SCALAR

LowTmcLeafNodeMccs.testMode

If TEST the device is using testing logic

Access:

READ_WRITE

Data type:

DevEnum

Data format:

SCALAR

LowTmcLeafNodeMccs.versionId

Read the Version Id of the device.

Returns:

the version id of the device

Access:

READ

Data type:

DevString

Data format:

SCALAR

Commands

LowTmcLeafNodeMccs.Abort(DevEnum) DevVarLongStringArray

The input string in JSON format.

Returns:

(ReturnType, ‘informational message’)

LowTmcLeafNodeMccs.AbortCommands() DevVarLongStringArray

No input parameter (DevVoid)

Returns:

returns (None): A tuple containing a return code and a string message indicating status. The message is for information purpose only.

LowTmcLeafNodeMccs.AssignResources(DevString) DevVarLongStringArray

argin (str): JSON-formatted string containing an integer

subarray ID and resources to be allocated.

Returns:

returns (Tuple[List[ResultCode], List[str]]): A tuple containing a list of result codes and a list of unique IDs.

LowTmcLeafNodeMccs.CheckLongRunningCommandStatus(DevString) DevString

command id

Returns:

TaskStatus

LowTmcLeafNodeMccs.DebugDevice() DevUShort

No input parameter (DevVoid)

Returns:

The TCP port the debugger is listening on.

LowTmcLeafNodeMccs.GetVersionInfo() DevVarStringArray

No input parameter (DevVoid)

Returns:

returns (None): The result code and the command unique ID

LowTmcLeafNodeMccs.Init() DevVoid

Init

LowTmcLeafNodeMccs.Off() DevVarLongStringArray

No input parameter (DevVoid)

Returns:

returns (Tuple[List[ResultCode], List[str]]): A tuple containing a list of result codes and a list of unique IDs.

LowTmcLeafNodeMccs.On() DevVarLongStringArray

No input parameter (DevVoid)

Returns:

returns (Tuple[List[ResultCode], List[str]]): A tuple containing a list of result codes and a list of unique IDs.

LowTmcLeafNodeMccs.ReleaseAllResources(DevString) DevVarLongStringArray

argin (None): JSON-formatted string containing the subarray ID to

release resources from.

Returns:

returns (Tuple[List[ResultCode], List[str]]): A tuple containing a list of result codes and a list of unique IDs.

LowTmcLeafNodeMccs.Reset() DevVarLongStringArray

No input parameter (DevVoid)

Returns:

[ResultCode][message or command id]

LowTmcLeafNodeMccs.SetAdminMode(DevEnum) DevVarLongStringArray

The input string in JSON format.

Returns:

(ReturnType, ‘informational message’)

LowTmcLeafNodeMccs.Standby() DevVarLongStringArray

No input parameter (DevVoid)

Returns:

returns (Tuple[List[ResultCode], List[str]]): A tuple containing a list of result codes and a list of unique IDs.