当前位置: 首页>>代码示例>>Python>>正文


Python device.Device类代码示例

本文整理汇总了Python中ossie.device.Device的典型用法代码示例。如果您正苦于以下问题:Python Device类的具体用法?Python Device怎么用?Python Device使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Device类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

        def __init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams):
            Device.__init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams)
            ThreadedComponent.__init__(self)

            # 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
开发者ID:RedhawkSDR,项目名称:framework-core,代码行数:8,代码来源:python_dev_base.py

示例2: __init__

 def __init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams):
     Device.__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
开发者ID:Geontech,项目名称:Code_Blocks,代码行数:8,代码来源:simple_gps_base.py

示例3: start

 def start(self):
     self.threadControlLock.acquire()
     try:
         Device.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()
开发者ID:Geontech,项目名称:Code_Blocks,代码行数:9,代码来源:simple_gps_base.py

示例4: __init__

        def __init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams):
            Device.__init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams)
            ThreadedComponent.__init__(self)

            # 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_prop_out = PortCFPropertySetOut_i(self, "prop_out")
开发者ID:RedhawkSDR,项目名称:framework-core,代码行数:10,代码来源:svc_connect_dev_base.py

示例5: releaseObject

 def releaseObject(self):
     try:
         self.stop()
     except Exception:
         self._log.exception("Error stopping")
     self.threadControlLock.acquire()
     try:
         Device.releaseObject(self)
     finally:
         self.threadControlLock.release()
开发者ID:Geontech,项目名称:Code_Blocks,代码行数:10,代码来源:simple_gps_base.py

示例6: __init__

 def __init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams):
     Device.__init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams)
     
     # video_allocation_ids is exclusively paired with property frontend_video_status.
     # video_allocation_ids tracks allocation ids while frontend_video_status provides video device information.
     self.video_allocation_ids = []
 
     # Provides mapping from unique allocation ID to internal video (channel) number
     self.allocation_id_to_video_device_id = {}
     self.allocation_id_mapping_lock = threading.Lock()
开发者ID:patcamwol,项目名称:frontendXInterfaces,代码行数:10,代码来源:video_device.py

示例7: stop

        def stop(self):
            # Technically not thread-safe but close enough for now
            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")
            Device.stop(self)
开发者ID:Axios-Engineering,项目名称:framework-core,代码行数:11,代码来源:simpleseqdev_python_impl1_base.py

示例8: __init__

        def __init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams):
            Device.__init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams)
            ThreadedComponent.__init__(self)

            # 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_message = MessageConsumerPort(thread_sleep=0.1, parent = self)
            self.port_dataFloat_out = bulkio.OutFloatPort("dataFloat_out")
开发者ID:Geontech,项目名称:Code_Blocks,代码行数:11,代码来源:sawtooth_device_base.py

示例9: __init__

        def __init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams):
            Device.__init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams)
            ThreadedComponent.__init__(self)

            # 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_dataDouble_in = bulkio.InDoublePort("dataDouble_in", maxsize=self.DEFAULT_QUEUE_SIZE)
            self.port_dataFloat_in = bulkio.InFloatPort("dataFloat_in", maxsize=self.DEFAULT_QUEUE_SIZE)
            self.port_dataFloat_out = bulkio.OutFloatPort("dataFloat_out")
            self.port_dataDouble_out = bulkio.OutDoublePort("dataDouble_out")
开发者ID:RedhawkSDR,项目名称:redhawk-ide-uitests,代码行数:13,代码来源:DeviceStub_base.py

示例10: stop

    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")
            Device.stop(self)
        finally:
            self.threadControlLock.release()
开发者ID:Geontech,项目名称:Code_Blocks,代码行数:14,代码来源:simple_gps_base.py

示例11: start

 def start(self):
     Device.start(self)
     ThreadedComponent.startThread(self, pause=self.PAUSE)
开发者ID:RedhawkSDR,项目名称:framework-core,代码行数:3,代码来源:python_dev_base.py

示例12: initialize

 def initialize(self):
     Device.initialize(self)
     
     # Instantiate the default implementations for all ports on this device
     self.port_dataFloat_out = bulkio.OutFloatPort("dataFloat_out")
     self.port_GPS_uses = PortFRONTENDGPSOut_i(self, "GPS_uses")
开发者ID:Geontech,项目名称:Code_Blocks,代码行数:6,代码来源:simple_tcp_base.py

示例13: initialize

    def initialize(self):
        Device.initialize(self)

        # Instantiate the default implementations for all ports on this device
        self.port_GPS_idl = PortFRONTENDGPSIn_i(self, "GPS_idl")
开发者ID:Geontech,项目名称:Code_Blocks,代码行数:5,代码来源:simple_gps_base.py

示例14: __init__

 def __init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams):
     Device.__init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams)
     self.process_thread = None
     self.auto_start = False
开发者ID:Axios-Engineering,项目名称:framework-core,代码行数:4,代码来源:simpleseqdev_python_impl1_base.py

示例15: start

 def start(self):
     Device.start(self)
     if self.process_thread == None:
         self.process_thread = ProcessThread(target=self.process, pause=self.PAUSE)
         self.process_thread.start()
开发者ID:Axios-Engineering,项目名称:framework-core,代码行数:5,代码来源:simpleseqdev_python_impl1_base.py


注:本文中的ossie.device.Device类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。