Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 def configuration(self):
     cd = CompositeNode.configuration(self)
     get_attribute(
         self, 'enable_local_view', cd, int
     )  # max num instances of Alarm allowed in cur AlarmsMsg object's list
     get_attribute(self, '__node_id__', cd, str)
     return cd
Exemplo n.º 3
0
 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
Exemplo n.º 4
0
 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
Exemplo n.º 5
0
 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
Exemplo n.º 6
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     get_attribute(self, 'register', config, str)
     get_attribute(self, 'read_only', config, str)
     get_attribute(self, 'debug', config, str)
     get_attribute(self, 'offset', config, str)
     return config
Exemplo n.º 7
0
 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
Exemplo n.º 8
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     get_attribute(self, 'debug', config, as_onoff)
     get_attribute(self, 'discover', config, str)
     get_attribute(self, 'discover_start', config, str)
     get_attribute(self, 'discover_stop', config, str)
     return config
Exemplo n.º 9
0
 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
Exemplo n.º 10
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     get_attribute(self, 'register', config, str)
     get_attribute(self, 'base', config, str)
     get_attribute(self, 'offset', config, str)
     get_attribute(self, 'multiplier', config, str)
     return config
Exemplo n.º 11
0
 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
Exemplo n.º 12
0
 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
Exemplo n.º 13
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     get_attribute(self, "debug", config, as_onoff)
     get_attribute(self, "discover", config, str)
     get_attribute(self, "discover_start", config, str)
     get_attribute(self, "discover_stop", config, str)
     return config
Exemplo n.º 14
0
 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
Exemplo n.º 15
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     get_attribute(self, 'register', config, str)
     get_attribute(self, 'read_only', config, str)
     get_attribute(self, 'debug', config, str)
     get_attribute(self, 'offset', config, str)
     return config
Exemplo n.º 16
0
 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
Exemplo n.º 17
0
 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
Exemplo n.º 18
0
 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
Exemplo n.º 19
0
 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
Exemplo n.º 20
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     config['port'] = config['parent']
     get_attribute(self, 'id', config)
     get_attribute(self,'cache_life',config,str)
     get_attribute(self,'timeout',config,str)
     get_attribute(self,'patience',config,str)
     return config
Exemplo n.º 21
0
 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
Exemplo n.º 22
0
 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
Exemplo n.º 23
0
 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
Exemplo n.º 24
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     get_attribute(self, 'debug', config, as_onoff)
     get_attribute(self, 'Name', config, str)
     get_attribute(self, 'Type', config, str)
     self.__node_id__ = '120073'
     get_attribute(self, '__node_id__', config, str)
     config.update(self.soap_attributes)
     return config
Exemplo n.º 25
0
 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
Exemplo n.º 26
0
 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
Exemplo n.º 27
0
 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
Exemplo n.º 28
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     get_attribute(self,'debug', config, as_onoff)
     get_attribute(self,'Name',config, str)
     get_attribute(self,'Type', config, str)
     self.__node_id__ = '120073'
     get_attribute(self, '__node_id__', config, str)
     config.update(self.soap_attributes)
     return config
Exemplo n.º 29
0
 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
Exemplo n.º 30
0
 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
Exemplo n.º 31
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     get_attribute(self, '__node_id__', config)
     get_attribute(self, 'source', config)
     #get_attribute(self, 'default', config)
     get_attribute(self, 'link', config)
     get_attribute(self, 'bacnet_datatype', config)
     get_attribute(self, 'force', config)
     return config
Exemplo n.º 32
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     get_attribute(self, '__node_id__', config)
     get_attribute(self, 'source', config)
     #get_attribute(self, 'default', config)
     get_attribute(self, 'link', config)
     get_attribute(self, 'bacnet_datatype', config)
     get_attribute(self, 'force', config)
     return config
Exemplo n.º 33
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     get_attribute(self, 'debug', config, as_onoff)
     get_attribute(self, 'device_name',config)
     get_attribute(self, 'unit_number', config, str)
     get_attribute(self, 'controller_type', config, str)
     get_attribute(self, 'controller_version', config, str)
     get_attribute(self, '__node_id__', config, str)
     return config
Exemplo n.º 34
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     get_attribute(self, 'debug', config, as_onoff)
     get_attribute(self, 'post',config, str)
     get_attribute(self, 'server', config, str)
     get_attribute(self, 'action', config, str)
     get_attribute(self, 'ttl', config, str)
     self.__node_id__ = '120072'
     get_attribute(self, '__node_id__', config, str)
     return config
Exemplo n.º 35
0
 def configuration(self):
     cd = CompositeNode.configuration(self)
     get_attribute(self, 'discovered', cd, str)
     get_attribute(self, '__node_id__',cd)
     get_attribute(self, 'device_info', cd, str)
     get_attribute(self, 'instance', cd, int)
     get_attribute(self, 'debug', cd, int)
     if self.debug > 0:
         get_attribute(self, 'test_resp', cd, int)
     return cd
Exemplo n.º 36
0
 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
Exemplo n.º 37
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     get_attribute(self, 'debug', config, as_onoff)
     get_attribute(self, 'post', config, str)
     get_attribute(self, 'server', config, str)
     get_attribute(self, 'action', config, str)
     get_attribute(self, 'ttl', config, str)
     self.__node_id__ = '120072'
     get_attribute(self, '__node_id__', config, str)
     return config
Exemplo n.º 38
0
 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
Exemplo n.º 39
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     get_attribute(self, 'PID', config)
     get_attribute(self, 'description', config)
     get_attribute(self, 'format', config)
     get_attribute(self, 'properties', config)
     get_attribute(self, 'ttl', config, int)
     get_attribute(self, 'last_response', config, repr)
     get_attribute(self, 'scale', config, float)
     return config
Exemplo n.º 40
0
 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
Exemplo n.º 41
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     get_attribute(self, 'PID', config)
     get_attribute(self, 'description', config)
     get_attribute(self, 'format', config)
     get_attribute(self, 'properties', config)
     get_attribute(self, 'ttl', config, int)
     get_attribute(self, 'last_response', config, repr)
     get_attribute(self, 'scale', config, float)
     return config
Exemplo n.º 42
0
 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
Exemplo n.º 43
0
 def configuration( self ):
     config_dict = CompositeNode.configuration( self )
     get_attribute( self, 'enabled', config_dict )
     get_attribute( self, 'debug', config_dict )
     get_attribute( self, 'period', config_dict )
     get_attribute( self, 'fast_adjust_threshold', config_dict )
     get_attribute( self, 'adjust_threshold', config_dict )
     get_attribute( self, 'nudge_amount', config_dict )
     get_attribute( self, 'bcu_date', config_dict )
     get_attribute( self, 'bcu_time', config_dict )
     return config_dict
Exemplo n.º 44
0
    def configuration(self):
        cd = CompositeNode.configuration(self)
        get_attribute(self, 'proxy', cd, str)
        get_attribute(self, '__node_id__',cd)
        get_attribute(self, 'device_info', cd, str)
        get_attribute(self, 'time_rp', cd, str)
        get_attribute(self, 'time_rpm', cd, str)
        get_attribute(self, 'time_wp', cd, str)
        get_attribute(self, 'time_wpm', cd, str)

        return cd
Exemplo n.º 45
0
    def configuration(self):
        cd = CompositeNode.configuration(self)
        get_attribute(self, 'proxy', cd, str)
        get_attribute(self, '__node_id__', cd)
        get_attribute(self, 'device_info', cd, str)
        get_attribute(self, 'time_rp', cd, str)
        get_attribute(self, 'time_rpm', cd, str)
        get_attribute(self, 'time_wp', cd, str)
        get_attribute(self, 'time_wpm', cd, str)

        return cd
Exemplo n.º 46
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     get_attribute(self, 'mac_address', config, str) #mac address string
     # the following paramters are ignored
     get_attribute(self, 'parity', config, int_to_parity)
     get_attribute(self, 'flow_control', config, int_to_flowctl)
     get_attributes(self, ('baud', 'bits', 'stop_bits',
                           'debug', 'dump_cpl'), config, str)
     get_attribute(self, 'custom_baud', config, int)
     get_attribute(self, 'lock_directory', config)
     return config
Exemplo n.º 47
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     get_attribute(self, 'mac_address', config, str)
     get_attribute(self, 'discovery_mode', config, str)
     get_attribute(self, 'timeout', config, str)
     get_attribute(self, 'debug', config, str)
     get_attribute(self, 'relay_node', config, str)
     try:
         self.status = self.get_status()
     except Exception, e:
         self.status = str(e)
Exemplo n.º 48
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     get_attribute(self, 'debug_lvl', config)
     get_attribute(self, 'lan_address', config)
     get_attribute(self, 'id_number', config)
     get_attribute(self, 'description', config)
     get_attribute(self, 'proxy_lan_addr', config)
     get_attribute(self, 'proxy_obj_ref', config)
     get_attribute(self, '__node_id__', config)
     ActiveProxyAbstractClass.configuration(self, config)
     return config