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


Python ConfigurableNode.__init__方法代码示例

本文整理汇总了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
开发者ID:mcruse,项目名称:monotone,代码行数:9,代码来源:storage.py

示例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
开发者ID:mcruse,项目名称:monotone,代码行数:32,代码来源:__init__.py

示例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
开发者ID:mcruse,项目名称:monotone,代码行数:9,代码来源:cpc.py

示例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
开发者ID:mcruse,项目名称:monotone,代码行数:9,代码来源:points.py

示例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
开发者ID:mcruse,项目名称:monotone,代码行数:11,代码来源:dyndns.py

示例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
开发者ID:mcruse,项目名称:monotone,代码行数:11,代码来源:trigger.py

示例7: __init__

# 需要导入模块: from mpx.lib.node import ConfigurableNode [as 别名]
# 或者: from mpx.lib.node.ConfigurableNode import __init__ [as 别名]
	def __init__(self):
		ConfigurableNode.__init__(self)
开发者ID:mcruse,项目名称:monotone,代码行数:4,代码来源:test_open.py

示例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
开发者ID:mcruse,项目名称:monotone,代码行数:5,代码来源:overridable.py

示例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
开发者ID:mcruse,项目名称:monotone,代码行数:8,代码来源:direct_ppp.py

示例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
开发者ID:mcruse,项目名称:monotone,代码行数:6,代码来源:__init__.py


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