本文整理汇总了Python中mpx.lib.node.CompositeNode.configuration方法的典型用法代码示例。如果您正苦于以下问题:Python CompositeNode.configuration方法的具体用法?Python CompositeNode.configuration怎么用?Python CompositeNode.configuration使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mpx.lib.node.CompositeNode
的用法示例。
在下文中一共展示了CompositeNode.configuration方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: configuration
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import configuration [as 别名]
def configuration(self):
cd = CompositeNode.configuration(self)
get_attribute(self, 'node_url', cd)
if not self.is_remote():
for attr in PTYPE_MAP.get(self.parent.ptype)().supported_attrs():
get_attribute(self, attr, cd)
return cd
示例2: configuration
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import configuration [as 别名]
def configuration(self):
config = CompositeNode.configuration(self)
get_attribute(self,'id',config)
get_attribute(self,'column',config,str)
get_attribute(self,'spaces',config,str)
set_attribute(self,'conversion',float,config,_name)
return config
示例3: configuration
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import configuration [as 别名]
def configuration(self):
config = CompositeNode.configuration(self)
get_attribute(self, 'address', config, str)
get_attribute(self, 'line_handler', config, str)
get_attribute(self, 'debug', config, str)
get_attribute(self, 'proxy', config, str)
return config
示例4: configuration
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import configuration [as 别名]
def configuration(self):
config = CompositeNode.configuration(self)
get_attribute(self, 'password', config)
#get_attribute(self, 'security_level', config)
#get_attribute(self, 'password_enable', config)
get_attribute(self, 'timeout', config, str)
return config
示例5: configuration
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import configuration [as 别名]
def configuration(self):
config = CompositeNode.configuration(self)
get_attribute(self, 'debug', config, as_onoff)
get_attribute(self, 'host',config)
self.__node_id__ = '120071'
get_attribute(self, '__node_id__', config, str)
return config
示例6: configuration
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import configuration [as 别名]
def configuration(self):
config = CompositeNode.configuration(self)
get_attribute(self, 'ttl', cd)
get_attribute(self, 'read_op', cd)
get_attribute(self, 'read_params', cd)
get_attribute(self, 'write_op', cd)
get_attribute(self, 'write_params', cd)
return cd
示例7: configuration
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import configuration [as 别名]
def configuration(self):
config = CompositeNode.configuration(self)
get_attribute(self, 'url', config, str)
get_attribute(self, 'user', config, str)
get_attribute(self, 'password', config, str)
get_attribute(self, 'spreadsheet', config, str)
get_attribute(self, 'worksheet', config, str)
return config
示例8: configuration
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import configuration [as 别名]
def configuration(self):
config = CompositeNode.configuration(self)
get_attribute(self, '__node_id__', config)
get_attribute(self, 'source', config)
get_attribute(self, 'device_link', config)
get_attribute(self, 'discover_mode', config)
get_attribute(self, 'bacnet_datatype', config)
return config
示例9: configuration
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import configuration [as 别名]
def configuration(self):
config = CompositeNode.configuration(self)
get_attribute(self, 'parameter',config, str)
get_attribute(self, 'debug',config, str)
get_attribute(self, 'position', config, str)
get_attribute(self, 'description', config, str)
get_attribute(self, 'ttl', config, str)
get_attribute(self, 'readwrite', config, str)
return config
示例10: configuration
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import configuration [as 别名]
def configuration( self ):
config = CompositeNode.configuration( self )
get_attribute( self, 'debug', config )
get_attribute( self, 'override_defaultroute', config )
get_attribute( self, 'noipdefault', config )
get_attribute( self, 'mtu', config )
get_attribute( self, 'mru', config )
get_attribute( self, 'advanced_options', config )
return config
示例11: configuration
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import configuration [as 别名]
def configuration(self):
cd = CompositeNode.configuration(self)
get_attribute(self, 'discovered', cd, str)
get_attribute(self, '__node_id__', cd)
get_attribute(self, 'debug', cd, str)
get_attribute(self, 'instance', cd, int)
if self._parent_device.is_proxy():
ProxyAbstractClass.configuration(self, cd)
return cd
示例12: configuration
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import configuration [as 别名]
def configuration(self):
config = CompositeNode.configuration(self)
get_attribute(self, 'ip', config, str)
config['port'] = str(self.udp_port)
get_attribute(self, 'debug', config, str)
get_attribute(self, 'last_error', config, str)
get_attribute(self, 'retries', config, str)
get_attribute(self, 'report_timeouts', config, str)
return config
示例13: configuration
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import configuration [as 别名]
def configuration(self):
config = CompositeNode.configuration(self)
get_attribute(self, 'timeout', config, str)
get_attribute(self, 'debug', config, str)
get_attribute(self, 'interval_calculation', config, str)
get_attribute(self, 'silent_interval_characters', config, str)
get_attribute(self, 'silent_interval_absolute', config, str)
get_attribute(self, 'retries', config, str)
get_attribute(self, 'report_timeouts', config, str)
return config
示例14: configuration
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import configuration [as 别名]
def configuration(self):
# Standard attributes.
config = CompositeNode.configuration(self)
config.update({'version':self.version, 'address':self.address})
buf = self.validate('2')
for a in self.attrdict.keys():
if getattr(self.attrdict[a]):
i = self.attrdict[a]
config[a.name] = a.get(int(buf[i:i+2],16))
return config
示例15: configuration
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import configuration [as 别名]
def configuration(self):
config = CompositeNode.configuration(self)
get_attribute(self, 'network', config, str)
get_attribute(self, 'discover', config, str)
get_attribute(self, 'discover_interval', config, str)
get_attribute(self, 'debug', config, int)
get_attribute(self, 'bcu_list', config, str)
if self.debug:
get_attribute(self, 'found_devices', config, str)
return config