當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。