def initialize(self):
     FrontendTunerDevice.initialize(self)
     
     # Instantiate the default implementations for all ports on this device
     self.port_DigitalTuner_in = frontend.InDigitalTunerPort("DigitalTuner_in", logger=self._log)
     self.port_RFInfo_in = frontend.InRFInfoPort("RFInfo_in", logger=self._log)
     self.port_dataShort_out = bulkio.OutShortPort("dataShort_out", logger=self._log)
示例#2
0
    def start(self):
        self._baseLog.info("--> start()")

        FrontendTunerDevice.start(self)
        ThreadedComponent.startThread(self, pause=self.PAUSE)

        self._baseLog.info("<-- start()")
示例#3
0
    def __init__(self, devmgr, uuid, label, softwareProfile, compositeDevice,
                 execparams):
        print("--> AVS4000_base.__init__()")

        FrontendTunerDevice.__init__(self, devmgr, uuid, label,
                                     softwareProfile, compositeDevice,
                                     execparams)
        ThreadedComponent.__init__(self)

        self.listeners = {}
        # self.auto_start is deprecated and is only kept for API compatibility
        # with 1.7.X and 1.8.0 devices.  This variable may be removed
        # in future releases
        self.auto_start = False
        # Instantiate the default implementations for all ports on this device
        self.port_RFInfo_in = frontend.InRFInfoPort("RFInfo_in", self)
        self.port_RFInfo_in._portLog = self._baseLog.getChildLogger(
            'RFInfo_in', 'ports')
        self.port_DigitalTuner_in = frontend.InDigitalTunerPort(
            "DigitalTuner_in", self)
        self.port_DigitalTuner_in._portLog = self._baseLog.getChildLogger(
            'DigitalTuner_in', 'ports')
        self.port_dataShort_out = bulkio.OutShortPort("dataShort_out")
        self.port_dataShort_out._portLog = self._baseLog.getChildLogger(
            'dataShort_out', 'ports')
        self.device_kind = "FRONTEND::TUNER"
        self.device_model = "AVS-4000"
        self.frontend_listener_allocation = frontend.fe_types.frontend_listener_allocation(
        )
        self.frontend_tuner_allocation = frontend.fe_types.frontend_tuner_allocation(
        )

        print("<-- AVS4000_Base.__init__()")
示例#4
0
    def __init__(self, devmgr, uuid, label, softwareProfile, compositeDevice,
                 execparams):
        FrontendTunerDevice.__init__(self, devmgr, uuid, label,
                                     softwareProfile, compositeDevice,
                                     execparams)
        ThreadedComponent.__init__(self)

        self.listeners = {}
        # self.auto_start is deprecated and is only kept for API compatibility
        # with 1.7.X and 1.8.0 devices.  This variable may be removed
        # in future releases
        self.auto_start = False
        # Instantiate the default implementations for all ports on this device
        self.port_RFInfo_in = frontend.InRFInfoPort("RFInfo_in", self)
        self.port_DigitalTuner_in = frontend.InDigitalScanningTunerPort(
            "DigitalTuner_in", self)
        self.port_GPS_in = frontend.InGPSPort("GPS_in", self)
        self.port_NavData_in = frontend.InNavDataPort("NavData_in", self)
        self.port_RFSource_in = frontend.InRFSourcePort("RFSource_in", self)
        self.port_dataDouble_out = bulkio.OutDoublePort("dataDouble_out")
        self.addPropertyChangeListener('connectionTable',
                                       self.updated_connectionTable)
        self.device_kind = "FRONTEND::TUNER"
        self.frontend_listener_allocation = frontend.fe_types.frontend_listener_allocation(
        )
        self.frontend_tuner_allocation = frontend.fe_types.frontend_tuner_allocation(
        )
 def __init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams):
     FrontendTunerDevice.__init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams)
     self.threadControlLock = threading.RLock()
     self.process_thread = None
     # self.auto_start is deprecated and is only kept for API compatibility
     # with 1.7.X and 1.8.0 devices.  This variable may be removed
     # in future releases
     self.auto_start = False
 def start(self):
     self.threadControlLock.acquire()
     try:
         FrontendTunerDevice.start(self)
         if self.process_thread == None:
             self.process_thread = ProcessThread(target=self.process, pause=self.PAUSE)
             self.process_thread.start()
     finally:
         self.threadControlLock.release()
 def releaseObject(self):
     try:
         self.stop()
     except Exception:
         self._log.exception("Error stopping")
     self.threadControlLock.acquire()
     try:
         FrontendTunerDevice.releaseObject(self)
     finally:
         self.threadControlLock.release()
示例#8
0
    def stop(self):
        self._baseLog.info("--> stop()")

        FrontendTunerDevice.stop(self)
        if not ThreadedComponent.stopThread(self, self.TIMEOUT):
            self._baseLog.info("<-- stop()")

            raise CF.Resource.StopError(CF.CF_NOTSET,
                                        "Processing thread did not die")

        self._baseLog.info("<-- stop()")
示例#9
0
    def releaseObject(self):
        self._baseLog.info("--> releaseObject()")

        try:
            self.stop()
        except Exception:
            self._baseLog.exception("Error stopping")

        FrontendTunerDevice.releaseObject(self)

        self._baseLog.info("<-- releaseObject()")
        def stop(self):
            self.threadControlLock.acquire()
            try:
                process_thread = self.process_thread
                self.process_thread = None

                if process_thread != None:
                    process_thread.stop()
                    process_thread.join(self.TIMEOUT)
                    if process_thread.isAlive():
                        raise CF.Resource.StopError(CF.CF_NOTSET, "Processing thread did not die")
                FrontendTunerDevice.stop(self)
            finally:
                self.threadControlLock.release()
        def __init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams):
            FrontendTunerDevice.__init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams)
            ThreadedComponent.__init__(self)

            self.listeners={}
            # self.auto_start is deprecated and is only kept for API compatibility
            # with 1.7.X and 1.8.0 devices.  This variable may be removed
            # in future releases
            self.auto_start = False
            # Instantiate the default implementations for all ports on this device
            self.port_RFInfo_in = frontend.InRFInfoPort("RFInfo_in", self)
            self.port_DigitalTuner_in = frontend.InDigitalTunerPort("DigitalTuner_in", self)
            self.port_dataShort_out = bulkio.OutShortPort("dataShort_out",logger=self._log)
            self.addPropertyChangeListener('connectionTable',self.updated_connectionTable)
            self.device_kind = "FRONTEND::TUNER"
            self.frontend_listener_allocation = frontend.fe_types.frontend_listener_allocation()
            self.frontend_tuner_allocation = frontend.fe_types.frontend_tuner_allocation()
示例#12
0
    def __init__(self, devmgr, uuid, label, softwareProfile, compositeDevice,
                 execparams):
        FrontendTunerDevice.__init__(self, devmgr, uuid, label,
                                     softwareProfile, compositeDevice,
                                     execparams)
        ThreadedComponent.__init__(self)

        self.listeners = {}
        # self.auto_start is deprecated and is only kept for API compatibility
        # with 1.7.X and 1.8.0 devices.  This variable may be removed
        # in future releases
        self.auto_start = False
        # Instantiate the default implementations for all ports on this device
        self.port_RFInfo_in = frontend.InRFInfoPort("RFInfo_in")
        self.port_AnalogTuner_in = frontend.InAnalogTunerPort("AnalogTuner_in")
        self.port_RFInfo_out = frontend.OutRFInfoPort("RFInfo_out")
        self.device_kind = "FRONTEND::TUNER"
        self.frontend_listener_allocation = frontend.fe_types.frontend_listener_allocation(
        )
        self.frontend_tuner_allocation = frontend.fe_types.frontend_tuner_allocation(
        )
 def releaseObject(self):
     try:
         self.stop()
     except Exception:
         self._log.exception("Error stopping")
     FrontendTunerDevice.releaseObject(self)
 def stop(self):
     FrontendTunerDevice.stop(self)
     if not ThreadedComponent.stopThread(self, self.TIMEOUT):
         raise CF.Resource.StopError(CF.CF_NOTSET, "Processing thread did not die")
 def start(self):
     FrontendTunerDevice.start(self)
     ThreadedComponent.startThread(self, pause=self.PAUSE)
示例#16
0
 def releaseObject(self):
     try:
         self.stop()
     except Exception:
         self._log.exception("Error stopping")
     FrontendTunerDevice.releaseObject(self)
示例#17
0
 def stop(self):
     FrontendTunerDevice.stop(self)
     if not ThreadedComponent.stopThread(self, self.TIMEOUT):
         raise CF.Resource.StopError(CF.CF_NOTSET,
                                     "Processing thread did not die")
示例#18
0
 def start(self):
     FrontendTunerDevice.start(self)
     ThreadedComponent.startThread(self, pause=self.PAUSE)