Source code for ska_mid_cbf_mcs.slim.slim_link_device

# -*- coding: utf-8 -*-
#
# This file is part of the SlimLink project
#
#
#
# Distributed under the terms of the GPL license.
# See LICENSE.txt for more info.

# Copyright (c) 2019 National Research Council of Canada

from __future__ import annotations

from typing import Optional, Tuple

# tango imports
import tango
from ska_tango_base import SKABaseDevice
from ska_tango_base.commands import ResponseCommand, ResultCode

# Additional import
# PROTECTED REGION ID(SlimLink.additional_import) ENABLED START #
from ska_tango_base.control_model import (
    AdminMode,
    HealthState,
    PowerMode,
    SimulationMode,
)
from tango import AttrWriteType, DebugIt
from tango.server import attribute, command, run

from ska_mid_cbf_mcs.component.component_manager import CommunicationStatus
from ska_mid_cbf_mcs.slim.slim_link_component_manager import (
    SlimLinkComponentManager,
)

# PROTECTED REGION END #    //  SlimLink.additional_import

__all__ = ["SlimLink", "main"]



        # PROTECTED REGION END #    //  SlimLink.ClearCounters


# ----------
# Run server
# ----------


def main(args=None, **kwargs):
    # PROTECTED REGION ID(SlimLink.main) ENABLED START #
    return run((SlimLink,), args=args, **kwargs)
    # PROTECTED REGION END #    //  SlimLink.main


if __name__ == "__main__":
    main()