artemis.core.tree

Module Contents

class artemis.core.tree.Element(key)

Element class to generically contain whatever we want to put in the tree. Only important field is “key”.

property key(self)
property locked(self)
lock(self)
add_data(self, data)
get_data(self, prefix=None)
class artemis.core.tree.Node(key, parents)

Stable container to hold Element objects and operate on them.

remove_from_parents(self)

Removes self from the lists of children of self’s parents.

__str__(self)

Allows pretty printing of Nodes.

__repr__(self)

Allows pretty printing of Nodes.

add_payload(self, element)
class artemis.core.tree.Tree(name)

Structure of Nodes. Metadata/job organisation.

merge_trees(self, source_tree, target_element_key)
get_node_by_key(self, key)
add_node(self, node)
update_leaves(self)

Updates the list of leaves in the node’s tree.

update_parents(self)
flush(self)