本文整理汇总了Python中ossie.component.Component.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Component.__init__方法的具体用法?Python Component.__init__怎么用?Python Component.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ossie.component.Component
的用法示例。
在下文中一共展示了Component.__init__方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from ossie.component import Component [as 别名]
# 或者: from ossie.component.Component import __init__ [as 别名]
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
示例2: __init__
# 需要导入模块: from ossie.component import Component [as 别名]
# 或者: from ossie.component.Component import __init__ [as 别名]
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")
示例3: __init__
# 需要导入模块: from ossie.component import Component [as 别名]
# 或者: from ossie.component.Component import __init__ [as 别名]
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")
示例4: __init__
# 需要导入模块: from ossie.component import Component [as 别名]
# 或者: from ossie.component.Component import __init__ [as 别名]
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)
示例5: __init__
# 需要导入模块: from ossie.component import Component [as 别名]
# 或者: from ossie.component.Component import __init__ [as 别名]
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')