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)¶
-
property
-
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)¶
-