Package node_manager_fkie :: Module default_cfg_handler :: Class DefaultConfigHandler
[frames] | no frames]

Class DefaultConfigHandler

source code

       object --+            
                |            
sip.simplewrapper --+        
                    |        
          sip.wrapper --+    
                        |    
     PyQt5.QtCore.QObject --+
                            |
                           DefaultConfigHandler

A class to retrieve the list of nodes from the default configuration service. The received node list will be published by sending a QT signal. To retrieve the configuration a new thread will be created.

Instance Methods
 
node_list_signal(...)
node_list_signal is a signal, which is emitted, if a new list with nodes is retrieved.
source code
 
description_signal(...)
description_signal is a signal, which is emitted, if a new list with descriptions is retrieved.
source code
 
err_signal(...) source code
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
stop(self) source code
 
requestNodeList(self, service_uri, service, delay_exec=0.0)
This method starts a thread to get the informations about the default configured nodes.
source code
 
requestDescriptionList(self, service_uri, service, delay_exec=0.0)
This method starts a thread to get the descriptions from the default configuration node.
source code

Inherited from PyQt5.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, objectNameChanged, parent, property, pyqtConfigure, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr

Inherited from sip.simplewrapper: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables

Inherited from PyQt5.QtCore.QObject: staticMetaObject

Properties

Inherited from object: __class__

Method Details

node_list_signal(...)

source code 

node_list_signal is a signal, which is emitted, if a new list with nodes is retrieved. The signal has the URI of the service, the name of the service and a list with node names as parameter.

description_signal(...)

source code 

description_signal is a signal, which is emitted, if a new list with descriptions is retrieved. The signal has the URI of the service, the name of the service and a list with descriptions (multimaster_msgs_fkie.srv.ListDescription Response) parameter.

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

requestNodeList(self, service_uri, service, delay_exec=0.0)

source code 

This method starts a thread to get the informations about the default configured nodes. If all informations are retrieved, a node_list_signal of this class will be emitted. If for given service a thread is already running, the request will be ignored. This method is thread safe.

Parameters:
  • service_uri (str) - the URI of the service
  • service (str) - the name of service to get the node list
  • delay_exec (float) - delayd the execution

requestDescriptionList(self, service_uri, service, delay_exec=0.0)

source code 

This method starts a thread to get the descriptions from the default configuration node. If all informations are retrieved, a description_signal of this class will be emitted. If for given service a thread is already running, the request will be ignored. This method is thread safe.

Parameters:
  • service_uri (str) - the URI of the service
  • service (str) - the name of service to get the description
  • delay_exec (float) - delayd the execution