Package node_manager_fkie :: Module node_tree_model :: Class HostItem
[frames] | no frames]

Class HostItem

source code

python_qt_binding.QtGui.QStandardItem --+    
                                        |    
                                GroupItem --+
                                            |
                                           HostItem

The HostItem stores the information about a host.

Instance Methods
 
__init__(self, masteruri, address, local, parent=None)
Initialize the HostItem object with given values.
source code
 
host(self) source code
 
hostname(self) source code
 
address(self) source code
 
addresses(self) source code
 
masteruri(self) source code
 
mastername(self) source code
 
create_host_description(self, masteruri, address)
Returns the name generated from masteruri and address
source code
str
updateTooltip(self)
Creates a tooltip description based on text set by updateDescription() and all childs of this host with valid sensor description.
source code
 
generateDescription(self, extended=True) source code
 
type(self) source code
 
__eq__(self, item)
Compares the address of the masteruri.
source code
 
__gt__(self, item)
Compares the address of the masteruri.
source code
 
__ne__(self, item) (Inherited from node_manager_fkie.node_tree_model.GroupItem) source code
 
addCapabilities(self, config, capabilities, masteruri)
Add new capabilities. (Inherited from node_manager_fkie.node_tree_model.GroupItem)
source code
 
addNode(self, node, cfg='')
Adds a new node with given name. (Inherited from node_manager_fkie.node_tree_model.GroupItem)
source code
 
cfgs(self) (Inherited from node_manager_fkie.node_tree_model.GroupItem) source code
 
clearUp(self, fixed_node_names=None)
Removes not running and not configured nodes. (Inherited from node_manager_fkie.node_tree_model.GroupItem)
source code
 
count_nodes(self)
Returns count of nodes inside this group. (Inherited from node_manager_fkie.node_tree_model.GroupItem)
source code
dict(config : [str])
getCapabilityGroups(self, node_name)
Returns the names of groups, which contains the given node. (Inherited from node_manager_fkie.node_tree_model.GroupItem)
source code
GroupItem
getGroupItem(self, group_name, is_group=True, nocreate=False)
Returns a GroupItem with given name. (Inherited from node_manager_fkie.node_tree_model.GroupItem)
source code
[QtGui.QStandardItem]
getNodeItems(self, recursive=True)
Returns all nodes in this group and subgroups. (Inherited from node_manager_fkie.node_tree_model.GroupItem)
source code
[QtGui.QStandardItem]
getNodeItemsByName(self, node_name, recursive=True)
Since the same node can be included by different groups, this method searches for all nodes with given name and returns these items. (Inherited from node_manager_fkie.node_tree_model.GroupItem)
source code
[str]
getRunningNodes(self)
Returns the names of all running nodes. (Inherited from node_manager_fkie.node_tree_model.GroupItem)
source code
 
get_configs(self)
Returns a tuple with counts for launch and default configurations. (Inherited from node_manager_fkie.node_tree_model.GroupItem)
source code
 
get_namespace(self) (Inherited from node_manager_fkie.node_tree_model.GroupItem) source code
 
is_group(self) (Inherited from node_manager_fkie.node_tree_model.GroupItem) source code
bool
is_in_cap_group(self, nodename, config, ns, groupname)
Returns `True` if the group contains the node. (Inherited from node_manager_fkie.node_tree_model.GroupItem)
source code
 
markNodesAsDuplicateOf(self, running_nodes, is_sync_running=False)
While a synchronization same node on different hosts have the same name, the nodes with the same on other host are marked. (Inherited from node_manager_fkie.node_tree_model.GroupItem)
source code
bool
move_nodes2group(self, group_item, config, ns, groupname, host_item)
Returns `True` if the group was changed by adding a new node. (Inherited from node_manager_fkie.node_tree_model.GroupItem)
source code
 
name(self, new_name)
Set the new name of this group and updates the displayed name of the item. (Inherited from node_manager_fkie.node_tree_model.GroupItem)
source code
 
remCapablities(self, config)
Removes internal entry of the capability, so the new nodes are not grouped. (Inherited from node_manager_fkie.node_tree_model.GroupItem)
source code
 
remote_launched_nodes_updated(self) (Inherited from node_manager_fkie.node_tree_model.GroupItem) source code
 
reset_remote_launched_nodes(self) (Inherited from node_manager_fkie.node_tree_model.GroupItem) source code
int
state(self)
The state of this group. (Inherited from node_manager_fkie.node_tree_model.GroupItem)
source code
 
updateDescription(self, descr_type, descr_name, descr)
Sets the description of the robot. (Inherited from node_manager_fkie.node_tree_model.GroupItem)
source code
 
updateDisplayedConfig(self)
Updates the configuration representation in other column. (Inherited from node_manager_fkie.node_tree_model.GroupItem)
source code
 
updateIcon(self) (Inherited from node_manager_fkie.node_tree_model.GroupItem) source code
 
updateRunningNodeState(self, nodes)
Updates the running state of the nodes given in a dictionary. (Inherited from node_manager_fkie.node_tree_model.GroupItem)
source code
Class Variables
  ITEM_TYPE = Qt.UserRole+ 26
Instance Variables
  is_system_group
dict(config : dict(namespace: dict(group:dict('type' : str, 'images' : [str], 'description' : str, 'nodes' : [str])))) (Inherited from node_manager_fkie.node_tree_model.GroupItem)
Method Details

__init__(self, masteruri, address, local, parent=None)
(Constructor)

source code 

Initialize the HostItem object with given values.

Parameters:
  • masteruri (str) - URI of the ROS master assigned to the host
  • address (str) - the address of the host
  • local (bool) - is this host the localhost where the node_manager is running.
Overrides: GroupItem.__init__

host(self)

source code 
Decorators:
  • @property

hostname(self)

source code 
Decorators:
  • @property

address(self)

source code 
Decorators:
  • @property

addresses(self)

source code 
Decorators:
  • @property

masteruri(self)

source code 
Decorators:
  • @property

mastername(self)

source code 
Decorators:
  • @property

create_host_description(self, masteruri, address)

source code 

Returns the name generated from masteruri and address

Parameters:
  • masteruri (str) - URI of the ROS master assigned to the host
  • address (str) - the address of the host

updateTooltip(self)

source code 

Creates a tooltip description based on text set by updateDescription() and all childs of this host with valid sensor description. The result is returned as a HTML part.

Returns: str
the tooltip description coded as a HTML part
Overrides: GroupItem.updateTooltip

generateDescription(self, extended=True)

source code 
Overrides: GroupItem.generateDescription

type(self)

source code 
Overrides: GroupItem.type

__eq__(self, item)
(Equality operator)

source code 

Compares the address of the masteruri.

Overrides: GroupItem.__eq__

__gt__(self, item)
(Greater-than operator)

source code 

Compares the address of the masteruri.

Overrides: GroupItem.__gt__