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


Python component.Component类代码示例

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


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

示例1: __init__

        def __init__(self, identifier, execparams):
            loggerName = (execparams['NAME_BINDING'].replace('/', '.')).rsplit("_", 1)[0]
            Component.__init__(self, identifier, execparams, loggerName=loggerName)
            ThreadedComponent.__init__(self)

            # self.auto_start is deprecated and is only kept for API compatibility
            # with 1.7.X and 1.8.0 components.  This variable may be removed
            # in future releases
            self.auto_start = False
开发者ID:RedhawkSDR,项目名称:framework-core,代码行数:9,代码来源:svc_fn_error_base.py

示例2: __init__

        def __init__(self, identifier, execparams):
            loggerName = (execparams['NAME_BINDING'].replace('/', '.')).rsplit("_", 1)[0]
            Component.__init__(self, identifier, execparams, loggerName=loggerName)
            ThreadedComponent.__init__(self)

            # self.auto_start is deprecated and is only kept for API compatibility
            # with 1.7.X and 1.8.0 components.  This variable may be removed
            # in future releases
            self.auto_start = False
            # Instantiate the default implementations for all ports on this component
            self.port_dataFloat_out = bulkio.OutFloatPort("dataFloat_out")
开发者ID:RedhawkSDR,项目名称:framework-core,代码行数:11,代码来源:comp_src_base.py

示例3: __init__

    def __init__(self, identifier, execparams):
        loggerName = (execparams["NAME_BINDING"].replace("/", ".")).rsplit("_", 1)[0]
        Component.__init__(self, identifier, execparams, loggerName=loggerName)
        ThreadedComponent.__init__(self)

        # self.auto_start is deprecated and is only kept for API compatibility
        # with 1.7.X and 1.8.0 components.  This variable may be removed
        # in future releases
        self.auto_start = False
        # Instantiate the default implementations for all ports on this component
        self.port_dataFloat_in = MessageConsumerPort(thread_sleep=0.1, parent=self)
        self.port_dataFloat_in2 = MessageConsumerPort(thread_sleep=0.1, parent=self)
开发者ID:djwide,项目名称:USMARedhawk,代码行数:12,代码来源:dbwriter_base.py

示例4: __init__

        def __init__(self, identifier, execparams):
            loggerName = (execparams['NAME_BINDING'].replace('/', '.')).rsplit("_", 1)[0]
            Component.__init__(self, identifier, execparams, loggerName=loggerName)
            ThreadedComponent.__init__(self)

            # self.auto_start is deprecated and is only kept for API compatibility
            # with 1.7.X and 1.8.0 components.  This variable may be removed
            # in future releases
            self.auto_start = False
            # Instantiate the default implementations for all ports on this component
            self.port_message_out = MessageSupplierPort()
            self.port_eventChannel_out = PortCosEventChannelAdminEventChannelOut_i(self, "eventChannel_out")
开发者ID:RedhawkSDR,项目名称:redhawk-ide-uitests,代码行数:12,代码来源:MessagePortTestComp_base.py

示例5: __init__

        def __init__(self, identifier, execparams):
            loggerName = (execparams['NAME_BINDING'].replace('/', '.')).rsplit("_", 1)[0]
            Component.__init__(self, identifier, execparams, loggerName=loggerName)
            ThreadedComponent.__init__(self)

            # self.auto_start is deprecated and is only kept for API compatibility
            # with 1.7.X and 1.8.0 components.  This variable may be removed
            # in future releases
            self.auto_start = False
            # Instantiate the default implementations for all ports on this component
            self.port_negotiable_in = PortExtendedCFNegotiableProvidesPortIn_i(self, "negotiable_in")
            self.port_negotiable_in._portLog = self._baseLog.getChildLogger('negotiable_in', 'ports')
            self.port_negotiable_out = PortExtendedCFNegotiableProvidesPortOut_i(self, "negotiable_out")
            self.port_negotiable_out._portLog = self._baseLog.getChildLogger('negotiable_out', 'ports')
开发者ID:RedhawkSDR,项目名称:redhawk-ide-uitests,代码行数:14,代码来源:Negotiator_base.py

示例6: releaseObject

 def releaseObject(self):
     try:
         self.stop()
     except Exception:
         self._log.exception("Error stopping")
     Component.releaseObject(self)
开发者ID:RedhawkSDR,项目名称:framework-core,代码行数:6,代码来源:svc_fn_error_base.py

示例7: stop

 def stop(self):
     Component.stop(self)
     if not ThreadedComponent.stopThread(self, self.TIMEOUT):
         raise CF.Resource.StopError(CF.CF_NOTSET, "Processing thread did not die")
开发者ID:RedhawkSDR,项目名称:framework-core,代码行数:4,代码来源:svc_fn_error_base.py

示例8: start

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


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