Package concert_orchestra :: Module compatibility_tree :: Class CompatibilityBranch
[frames] | no frames]

Class CompatibilityBranch

source code

object --+
         |
        CompatibilityBranch

Forms a relationship between the node and the clients it is related with. (node is the branch, clients are the leaves).

Instance Methods
 
__init__(self, node)
Forms an empty branch.
source code
 
name(self) source code
 
prune_leaves(self, leaves)
We prune by name, which we know is unique (avoids worrying about python references).
source code
 
redundancy(self)
Computes the difference between the number of leaves and the minimum required number of leaves.
source code
 
free_slots(self)
Computes the difference between the maximum allowed number of leaves and the number of leaves.
source code
 
__str__(self)
str(x)
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, node)
(Constructor)

source code 

Forms an empty branch. @param node @type node.Node

Overrides: object.__init__

prune_leaves(self, leaves)

source code 

We prune by name, which we know is unique (avoids worrying about python references).

@param leaves @type [concert_msgs.ConcertClient]

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)