Example #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
Example #2
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
Example #3
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
Example #4
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
Example #5
0
 def configuration(self):
     cd = super(TrapEngine, self).configuration()
     # get_attribute(self, 'adapter', cd)
     cd['adapter'] = 'all'
     get_attribute(self, 'port', cd, str)
     get_attribute(self, 'trap_log', cd, str)
     return cd
Example #6
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
Example #7
0
 def configuration(self):
     cd = super(TrapEngine, self).configuration()
     # get_attribute(self, 'adapter', cd)
     cd['adapter'] = 'all'
     get_attribute(self, 'port', cd, str)
     get_attribute(self, 'trap_log', cd, str)
     return cd
Example #8
0
 def configuration(self):
     config = _GenericPoint.configuration(self)
     get_attribute(self, 'type', config, str)
     get_attribute(self, 'length', config, str)
     get_attribute(self, 'word_order', config, str)
     get_attribute(self, 'byte_order', config, str)
     get_attribute(self, 'bit_order', config, str)
     return config
Example #9
0
 def configuration(self):
     config = SubServiceNode.configuration(self)
     get_attribute(self, 'sort_order', config)
     get_attribute(self, 'position', config, str)
     get_attribute(self, 'type', config)
     get_attribute(self, 'column_error_value', config)
     get_attribute(self, 'column_error_type', config)
     return config
Example #10
0
 def configuration(self):
     config = PeriodicColumn.configuration(self)
     get_attribute(self,'node',config,as_node_url)
     get_attribute(self,'meter_description',config)
     get_attribute(self,'account',config)
     get_attribute(self,'meter_number',config)
     get_attribute(self,'units',config)
     return config
Example #11
0
 def configuration(self):
     config = ServiceNode.configuration(self)
     get_attribute(self, 'heating', config, as_node_url)
     get_attribute(self, 'cooling', config, as_node_url)
     get_attribute(self, 'temperature', config, as_node_url)
     get_attribute(self, 'minimum', config, str)
     get_attribute(self, 'maximum', config, str)
     return config
Example #12
0
 def configuration(self):
     config = Calculator.configuration(self)
     get_attribute(self, 'message', config)
     get_attribute(self, 'poll_period', config, str)
     get_attribute(self, 'critical_input', config)
     get_attribute(self, 'send_retries', config)
     get_attribute(self, 'enabled', config, str)
     return config
Example #13
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
Example #14
0
 def configuration(self):
     cd = super(Gateway, self).configuration()
     get_attribute(self, 'address', cd)
     get_attribute(self, 'debug', cd)
     get_attribute(self, 'net_grp_id', cd)
     get_attribute(self, 'rpc_port', cd)
     get_attribute(self, 'serial_forwarder_port', cd)
     return cd
Example #15
0
 def configuration(self):
     config = Formatter.configuration(self)
     get_attribute(self, 'timestamp_format', config)
     get_attribute(self, 'header_delimiter', config)
     get_attribute(self, 'data_delimiter', config)
     get_attribute(self, 'prefix', config)
     get_attribute(self, 'suffix', config)
     return config
Example #16
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
Example #17
0
 def configuration(self):
     config = SubServiceNode.configuration(self)
     get_attribute(self, 'sort_order', config)
     get_attribute(self, 'position', config, str)
     get_attribute(self, 'type', config)
     get_attribute(self, 'column_error_value', config)
     get_attribute(self, 'column_error_type', config)
     return config
 def configuration(self):
     config = Transporter.configuration(self)
     get_attribute(self, 'directory', config)
     get_attribute(self, 'file_prefix', config)
     get_attribute(self, 'file_suffix', config)
     get_attribute(self, 'name_scheme', config)
     get_attribute(self, 'timestamp_format', config)
     return config
Example #19
0
 def configuration(self):
     config = Calculator.configuration(self)
     get_attribute(self,'message', config)
     get_attribute(self, 'poll_period', config, str)
     get_attribute(self, 'critical_input', config)
     get_attribute(self, 'send_retries', config)
     get_attribute(self, 'enabled', config, str)
     return config
Example #20
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
Example #21
0
 def configuration(self):
     config = Transporter.configuration(self)
     get_attribute(self, 'post_url', config)
     get_attribute(self, 'chunked_data', config, str)
     get_attribute(self, 'debug', config, str)
     get_attribute(self, 'content_type', config)
     get_attribute(self, 'timeout', config, str)
     return config
Example #22
0
 def configuration(self):
     config = ServiceNode.configuration(self)
     get_attribute(self, 'server_url', config)
     get_attribute(self, 'node', config)
     get_attribute(self, 'period', config, str)
     get_attribute(self, 'connection', config, as_node_url)
     get_attribute(self, 'timeout', config, str)
     return config
Example #23
0
 def configuration(self):
     config = ServiceNode.configuration(self)
     get_attribute(self, 'heating', config, as_node_url)
     get_attribute(self, 'cooling', config, as_node_url)
     get_attribute(self, 'temperature', config, as_node_url)
     get_attribute(self, 'minimum', config, str)
     get_attribute(self, 'maximum', config, str)
     return config
Example #24
0
 def configuration(self):
     config = Calculated.configuration(self)
     get_attribute(self, 'comparison', config)
     get_attribute(self, 'input', config)
     get_attribute(self, 'constant', config)
     get_attribute(self, 'hysteresis', config, str)
     get_attribute(self, 'alarm_delay', config, str)
     return config
Example #25
0
 def configuration(self):
     config = Calculated.configuration(self)
     get_attribute(self,'comparison',config)
     get_attribute(self, 'input', config)
     get_attribute(self, 'constant', config)
     get_attribute(self, 'hysteresis', config, str)
     get_attribute(self, 'alarm_delay', config, str)
     return config
 def configuration(self):
     config = Transporter.configuration(self)
     get_attribute(self, 'post_url', config)
     get_attribute(self, 'chunked_data', config, str)
     get_attribute(self, 'debug', config, str)
     get_attribute(self, 'content_type', config)
     get_attribute(self, 'timeout', config, str)
     return config
Example #27
0
 def configuration(self):
     config = ServiceNode.configuration(self)
     get_attribute(self, 'server_url', config)
     get_attribute(self, 'node', config)
     get_attribute(self, 'period', config, str)
     get_attribute(self,'connection',config,as_node_url)
     get_attribute(self,'timeout',config,str)
     return config
Example #28
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
Example #29
0
 def configuration(self):
     config = RequestHandler.configuration(self)
     get_attribute(self, 'request_path', config)
     get_attribute(self, 'debug', config)
     get_attribute(self, 'safe_save', config)
     get_attribute(self, 'keep_backup', config)
     get_attribute(self, 'authentication', config)
     return config
Example #30
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
Example #31
0
 def configuration(self):
     config = Transporter.configuration(self)
     get_attribute(self, 'directory', config)
     get_attribute(self, 'file_prefix', config)
     get_attribute(self, 'file_suffix', config)
     get_attribute(self, 'name_scheme', config)
     get_attribute(self, 'timestamp_format', config)
     return config
Example #32
0
 def configuration(self):
     config = RequestHandler.configuration(self)
     get_attribute(self, "request_path", config)
     get_attribute(self, "debug", config)
     get_attribute(self, "safe_save", config)
     get_attribute(self, "keep_backup", config)
     get_attribute(self, "authentication", config)
     return config
Example #33
0
 def configuration(self):
     config = PeriodicColumn.configuration(self)
     get_attribute(self, 'node', config, as_node_url)
     get_attribute(self, 'meter_description', config)
     get_attribute(self, 'account', config)
     get_attribute(self, 'meter_number', config)
     get_attribute(self, 'units', config)
     return config
Example #34
0
 def configuration(self):
     config = _GenericPoint.configuration(self)
     get_attribute(self, 'type', config, str)
     get_attribute(self, 'length', config, str)
     get_attribute(self, 'word_order', config, str)
     get_attribute(self, 'byte_order', config, str)
     get_attribute(self, 'bit_order', config, str)
     return config
 def configuration(self):
     config = Formatter.configuration(self)
     get_attribute(self, 'timestamp_format', config)
     get_attribute(self,'header_delimiter',config)
     get_attribute(self,'data_delimiter',config)
     get_attribute(self,'prefix',config)
     get_attribute(self,'suffix',config)
     return config
Example #36
0
 def configuration(self):
     config = Calculator.configuration(self)
     config.update(_Trigger.configuration(self))
     get_attribute(self, 'message', config)
     get_attribute(self, 'poll_period', config, str)
     get_attribute(self, 'critical_input', config)
     get_attribute(self, 'description', config)
     get_attribute(self, 'enabled', config, str)
     return config
Example #37
0
 def configuration(self):
     config = Calculator.configuration(self)
     config.update(_Trigger.configuration(self))
     get_attribute(self,'message', config)
     get_attribute(self, 'poll_period', config, str)
     get_attribute(self, 'critical_input', config)
     get_attribute(self,'description', config)
     get_attribute(self, 'enabled', config, str)
     return config
Example #38
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
Example #39
0
    def configuration(self):
        config = PPPChildNode.configuration(self)
        get_attribute(self, 'user_id', config)
        get_attribute(self, 'password', config)
        get_attribute(self, 'local_ip', config)
        get_attribute(self, 'client_ip', config)
        get_attribute(self, 'enable_autoppp', config, as_boolean)

        return config
Example #40
0
 def configuration(self):
     config = SubServiceNode.configuration(self)
     get_attribute(self, 'object_alias', config)
     get_attribute(self,'object_name',config)
     get_attribute(self,'can_query',config)
     get_attribute(self,'is_enabled',config)        
     get_attribute(self, 'object_lifetime', config)
     
     return config    
Example #41
0
 def configuration( self ):
     config = PPPChildNode.configuration( self )
     get_attribute( self, 'user_id', config )
     get_attribute( self, 'password', config )
     get_attribute( self, 'local_ip', config )
     get_attribute( self, 'client_ip', config )
     get_attribute( self, 'enable_autoppp', config, as_boolean )
     
     return config
Example #42
0
    def configuration(self):
        config = SubServiceNode.configuration(self)
        get_attribute(self, 'object_alias', config)
        get_attribute(self, 'object_name', config)
        get_attribute(self, 'can_query', config)
        get_attribute(self, 'is_enabled', config)
        get_attribute(self, 'object_lifetime', config)

        return config
Example #43
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
 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
Example #45
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)
Example #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
Example #47
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
Example #48
0
 def configuration(self):
     config = Client.configuration(self)
     get_attribute(self, 'batch_mode', config, int)
     get_attribute(self, 'host', config, str)
     get_attribute(self, 'port', config, int)
     get_attribute(self, 'timeout', config, int)
     return config
Example #49
0
 def configuration(self):
     config = RequestHandler.configuration(self)
     get_attribute(self, 'request_path', config)
     get_attribute(self, 'secured', config, str)
     get_attribute(self, 'provides_security', config)
     get_attribute(self, 'authentication', config)
     return config
Example #50
0
 def configuration(self):
     config = RequestHandler.configuration(self)
     get_attribute(self, 'request_path', config)
     get_attribute(self, 'minimum_backup', config, _seconds_to_days)
     get_attribute(self, 'type', config)
     get_attribute(self, 'log', config, as_node_url)
     return config
Example #51
0
 def configuration(self):
     config = super(HTTPPostTransporter, self).configuration()
     get_attribute(self, "chunked_data", config, str)
     get_attribute(self, "debug", config, str)
     get_attribute(self, "content_type", config)
     get_attribute(self, "timeout", config, str)
     return config
Example #52
0
 def configuration(self):
     config = super(AlarmManager, self).configuration()
     get_attribute(self, 'use_https', config, str)
     get_attribute(self, 'max_raised', config, str)
     get_attribute(self, 'max_cleared', config, str)
     get_attribute(self, 'max_accepted', config, str)
     return config
Example #53
0
 def configuration(self):
     config = Exporter.configuration(self)
     get_attribute(self,'connection_node',config)
     get_attribute(self,'connection_attempts',config)
     get_attribute(self,'timeout',config,int)
     get_attribute(self,'log_path',config,self.as_node_url)
     return config
Example #54
0
 def configuration(self):
     config = super(AnsychronousSubscriptionTransport, self).configuration()
     get_attribute(self, 'chunked_data', config, str)
     get_attribute(self, 'debug', config, str)
     get_attribute(self, 'content_type', config)
     get_attribute(self, 'timeout', config, str)
     return config
Example #55
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