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

Class CompatibilityTree

source code

object --+
         |
        CompatibilityTree

Instance Methods
 
__init__(self, branches)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
nodes(self) source code
 
leaves(self) source code
 
is_valid(self) source code
 
print_branches(self, name='Branches', indent='') source code
 
add_leaf(self, leaf)
Just add to the first compatible branch (worry about more intelligent adding later)
source code
 
remove_leaf(self, leaf)
Just remove the first matching leaf name.
source code

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

Class Variables
  ERROR_NONE = 0
  ERROR_MINIMUM_REQUIREMENT_UNMET = 1
  ERROR_EXCEEDED_MAXIMUM_REQUIREMENT = 2
  ERROR_DUPLICATE_LEAVES = 3
Stores the implementation node - concert client list compatibility tree with algorithms to manipulate it.
Properties

Inherited from object: __class__

Method Details

__init__(self, branches)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

remove_leaf(self, leaf)

source code 

Just remove the first matching leaf name. Assumption is the name is unique of course (guaranteed by the conductor).