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


Python CompositeNode.__init__方法代码示例

本文整理汇总了Python中mpx.lib.node.CompositeNode.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python CompositeNode.__init__方法的具体用法?Python CompositeNode.__init__怎么用?Python CompositeNode.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在mpx.lib.node.CompositeNode的用法示例。


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

示例1: __init__

# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import __init__ [as 别名]
 def __init__(self):
     self._running = 0
     self.driver = None
     self.mac_address = None
     self.discovery_mode = 'None'
     CompositeNode.__init__(self)
     AutoDiscoveredNode.__init__(self)
     EventProducerMixin.__init__(self)
     self.device_map = {} #keyed by mac address of clients; value=Child node
     self._out_q = [] #request queue
     self._out_q_cv = threading.Condition()
     self._mutex = threading.Lock() #prevent multiple access to outbound commands
     self._registered_clients = {}
     self.transceiver_state = TransceiverState[0]
     self.cov = ChangeOfValueEvent(self, None, self.transceiver_state)
     self.debug = debug
     self.timeout = 10 #seconds
     self.who_is_interval = 10 #seconds
     self.default_discovered_protocol_module = None
     # @todo
     # initailize this through configuration
     self.default_discovered_protocol_module = feu
     self.transceiver_state = 0
     self.relay_node = '/interfaces/relay1'  #this is temporary, should be None
     self.active_devices = {}
     self.status = None
开发者ID:mcruse,项目名称:monotone,代码行数:28,代码来源:aerocomm.py

示例2: __init__

# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import __init__ [as 别名]
 def __init__(self):
     CompositeNode.__init__(self)
     self._threads = set()
     self.started = 0
     self._failed = {}
     self._exception = None
     return
开发者ID:mcruse,项目名称:monotone,代码行数:9,代码来源:calculator.py

示例3: __init__

# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import __init__ [as 别名]
 def __init__(self):
     CompositeNode.__init__(self)
     self._pdo_lock = Lock()
     self._pdo = None
     self.__running = False
     self.debug = 0
     return
开发者ID:mcruse,项目名称:monotone,代码行数:9,代码来源:energywise_manager.py

示例4: __init__

# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import __init__ [as 别名]
 def __init__(self):
     CompositeNode.__init__(self)
     ProxyAbstractClass.__init__(self)
     self.debug = 0
     self.value = None
     self.buffer = None
     self.last_set_exception = None
开发者ID:mcruse,项目名称:monotone,代码行数:9,代码来源:server.py

示例5: __init__

# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import __init__ [as 别名]
 def __init__(self):
     CompositeNode.__init__(self)
     self.coprocessor = None
     self.port_map = None
     self.eth_map = None
     self.modem_map = None
     return
开发者ID:mcruse,项目名称:monotone,代码行数:9,代码来源:host.py

示例6: __init__

# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import __init__ [as 别名]
 def __init__(self):
     CompositeNode.__init__(self)
     self.running = 0
     self.line_handler = None
     self._pnts_map = {}
     self.debug_lvl = 0 # should be valid immediately after ctor, NOT just after configure()
     self.__status = None
开发者ID:mcruse,项目名称:monotone,代码行数:9,代码来源:rznet_node.py

示例7: __init__

# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import __init__ [as 别名]
 def __init__(self):
     CompositeNode.__init__(self)
     AutoDiscoveredNode.__init__(self)
     self.running = 0
     self.discover_mode = 'never'
     self._been_discovered = 0
     self.source = 'broadway' #or 'bacnet'
开发者ID:mcruse,项目名称:monotone,代码行数:9,代码来源:bacnet_scheduler.py

示例8: __init__

# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import __init__ [as 别名]
 def __init__(self):
     CompositeNode.__init__(self)
     self._conversions = [self._as_node, self._attach_variable, self._as_is]
     self._threads = set()
     self.started = 0
     self._exception = None
     self.debug = debug_default
     return
开发者ID:mcruse,项目名称:monotone,代码行数:10,代码来源:evaluator.py

示例9: __init__

# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import __init__ [as 别名]
 def __init__(self):
     CompositeNode.__init__(self)
     EventProducerMixin.__init__(self)
     self._drives = []
     self.isStarted = 0
     self.sched_id = None
     self.period = 15
     return
开发者ID:mcruse,项目名称:monotone,代码行数:10,代码来源:__init__.py

示例10: __init__

# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import __init__ [as 别名]
 def __init__(self, ckt_status_svc_node, case_temp_dev_node):
    CompositeNode.__init__(self)
    self._ckt_status_svc_node = ckt_status_svc_node
    self._case_temp_dev_node = case_temp_dev_node
    self._status_dev_node = self._case_temp_dev_node.get_child('Status')
    self.running = 0
    self._alarms = []
    return
开发者ID:mcruse,项目名称:monotone,代码行数:10,代码来源:__init__.py

示例11: __init__

# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import __init__ [as 别名]
 def __init__(self):
     CompositeNode.__init__(self)
     self._lock = threading.RLock()
     self._port = None
     self.last_error = None
     self.retries = 3 #used by register_cache.RegisterCache._refresh
     self.report_timeouts = 1 #0 == try but give back last good val
     return
开发者ID:mcruse,项目名称:monotone,代码行数:10,代码来源:tcp_ip_line_handler.py

示例12: __init__

# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import __init__ [as 别名]
 def __init__(self, cache, name, rgvm, args):
     CompositeNode.__init__(self)
     self.parent = cache.ion()
     self.name = name
     self._cache = cache
     file = 'mpx.ion.capstone.micro_turbine.personality.RO_CommandCache.CommandION.__init__'
     self._compiled_reference = compile(rgvm, file, 'eval')
     self._rgvm_args = args
     self.parent._add_child(self)
开发者ID:mcruse,项目名称:monotone,代码行数:11,代码来源:cache.py

示例13: __init__

# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import __init__ [as 别名]
 def __init__( self, log_id ):
     CompositeNode.__init__( self )
     ConnectionMixin.__init__( self )
     EventProducerMixin.__init__( self )
     self.critical_data = self._CriticalData()
     self._log_id = log_id
     self._service_name = None
     self._device = None
     self._port = None
开发者ID:mcruse,项目名称:monotone,代码行数:11,代码来源:ppp.py

示例14: __init__

# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import __init__ [as 别名]
 def __init__(self):
     self.source = None
     self.updated = 0
     self.synclock = RLock()
     self.result = Undefined
     self.support_cov = False
     self.created = uptime.secs()
     CompositeNode.__init__(self)
     EventProducerMixin.__init__(self)
开发者ID:mcruse,项目名称:monotone,代码行数:11,代码来源:cache.py

示例15: __init__

# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import __init__ [as 别名]
 def __init__(self):
     CompositeNode.__init__(self)
     AutoDiscoveredNode.__init__(self)
     self._children_have_been_discovered = 0
     self.enable_local_view = 1
     self.debug = 1
     self._running = 0
     self._aero_server_node = None
     return
开发者ID:mcruse,项目名称:monotone,代码行数:11,代码来源:local_view.py


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