Source code for ska_control_model.communication_status
# -*- coding: utf-8 -*-
#
# This file is part of the SKA Control System project.
#
# Distributed under the terms of the BSD 3-clause new license.
# See LICENSE.txt for more info.
"""This module defines an enumerated type for communication status."""
import enum
[docs]
class CommunicationStatus(enum.IntEnum):
"""The status of communication with the system under controk."""
DISABLED = 0
"""
Communication is disabled.
The control system is not trying to establish/maintain a channel of
communication with the system under control. For example:
* if communication with the system under control is
connection-oriented, then there is no connection, and the control
system is not trying to establish a connection.
* if communication is by event subscription, then the control system
is unsubscribed from events.
* if communication is by polling, then the control system is not
performing that polling.
"""
NOT_ESTABLISHED = 1
"""
Communication is sought but not established.
The control system is trying to establish/maintain a channel of
communication with the system under control, but that channel is not
currently established. For example:
* if communication with the system under control is
connection-oriented, then the control system has not yet succeeded
in establishing the connection, or the connection has been broken.
"""
ESTABLISHED = 2
"""
The control system has established a channel of communication with
the system under control. For example:
* if communication with the system under control is
connection-oriented, then the control system has connected to the
system under control.
* if communication is by polling, then the control system is polling
the system under control, and the system under control is
responsive.
"""