本文整理汇总了Python中mpx.lib.node.ConfigurableNode.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python ConfigurableNode.__init__方法的具体用法?Python ConfigurableNode.__init__怎么用?Python ConfigurableNode.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mpx.lib.node.ConfigurableNode
的用法示例。
在下文中一共展示了ConfigurableNode.__init__方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from mpx.lib.node import ConfigurableNode [as 别名]
# 或者: from mpx.lib.node.ConfigurableNode import __init__ [as 别名]
def __init__( self ):
ConfigurableNode.__init__( self )
EventProducerMixin.__init__( self )
#
# Set old value to something which will never be valid so that
# we always generate an event on startup.
self.old_value = -99
示例2: __init__
# 需要导入模块: from mpx.lib.node import ConfigurableNode [as 别名]
# 或者: from mpx.lib.node.ConfigurableNode import __init__ [as 别名]
def __init__(self):
ConfigurableNode.__init__(self)
self._url = 'unknown'
self._poll_event = None
self._period = 0.2
# Pre-load attributes.
self.off_text = "Off"
self.on_text = "On"
self.auto_text = "Auto"
self.reverse_output = 0
self.output = REQUIRED
self.input = REQUIRED
self.period = self._period
self.asyncOK = 1
self.state = 2
self.debug = 0
self.__running = False
self._init_debug()
self.OFF = EnumeratedValue(0, self.off_text)
self.ON = EnumeratedValue(1, self.on_text)
self.AUTO = EnumeratedValue(2, self.auto_text)
self._NORMAL = 0
self._SAFETY = 1
self._output_state = self._NORMAL
self._output_lock = Lock()
self._changes_at = 0
self._waiting_value = None
self._value = None
self._lock = Lock()
return
示例3: __init__
# 需要导入模块: from mpx.lib.node import ConfigurableNode [as 别名]
# 或者: from mpx.lib.node.ConfigurableNode import __init__ [as 别名]
def __init__(self, prop_type_id, prop_type_name, prop_inst_num, dev):
ConfigurableNode.__init__(self)
self._prop_type_id = prop_type_id
self._prop_type_name = prop_type_name
self._prop_inst_num = prop_inst_num
self._dev = dev
self.running = 0
示例4: __init__
# 需要导入模块: from mpx.lib.node import ConfigurableNode [as 别名]
# 或者: from mpx.lib.node.ConfigurableNode import __init__ [as 别名]
def __init__(self, parent):
self.__parent = parent
self.__cov_count = 0
self._old_value = None
ConfigurableNode.__init__(self)
EventProducerMixin.__init__(self)
return
示例5: __init__
# 需要导入模块: from mpx.lib.node import ConfigurableNode [as 别名]
# 或者: from mpx.lib.node.ConfigurableNode import __init__ [as 别名]
def __init__( self ):
ConfigurableNode.__init__( self )
self.isRunning = 0
self.ipcheck_pid = 0
self._lock = Lock()
self.thread = None
self.first_time = 0
self.log_name = 'broadway'
self.update_count = 0
示例6: __init__
# 需要导入模块: from mpx.lib.node import ConfigurableNode [as 别名]
# 或者: from mpx.lib.node.ConfigurableNode import __init__ [as 别名]
def __init__(self):
ConfigurableNode.__init__(self)
EventProducerMixin.__init__(self)
EventConsumerMixin.__init__(self)
self._current_id = None
self._event_class = None
self.start_counter = 0
self.pnode_obj = None
self.pnode_subscribed = 0
示例7: __init__
# 需要导入模块: from mpx.lib.node import ConfigurableNode [as 别名]
# 或者: from mpx.lib.node.ConfigurableNode import __init__ [as 别名]
def __init__(self):
ConfigurableNode.__init__(self)
示例8: __init__
# 需要导入模块: from mpx.lib.node import ConfigurableNode [as 别名]
# 或者: from mpx.lib.node.ConfigurableNode import __init__ [as 别名]
def __init__(self):
ConfigurableNode.__init__(self)
self.__device = None
示例9: __init__
# 需要导入模块: from mpx.lib.node import ConfigurableNode [as 别名]
# 或者: from mpx.lib.node.ConfigurableNode import __init__ [as 别名]
def __init__( self ):
ConfigurableNode.__init__( self )
ConnectionMixin.__init__( self )
EventProducerMixin.__init__( self )
self.critical_data = self._CriticalData()
self.port = None
示例10: __init__
# 需要导入模块: from mpx.lib.node import ConfigurableNode [as 别名]
# 或者: from mpx.lib.node.ConfigurableNode import __init__ [as 别名]
def __init__(self, value):
ConfigurableNode.__init__(self)
self.value = value
return