Method |
Description |
|
__construct ( $name, $description, $status = true ) |
|
|
compareChildren ( $a, $b ) |
Comparator method to rank child nodes by total weight. |
|
fail ( ) |
Fail this node. |
|
getChildren ( ) |
Return list of child nodes from direct edges. |
|
getDescription ( ) : string |
|
|
getName ( ) : string |
|
|
getSize ( ) |
Gets the number of immediate child edges from this node. |
|
getStatus ( ) : string |
|
|
getTotalSize ( ) |
depth first search to get the total number of nodes
that are descendants of this node. |
|
isFailed ( ) |
Is this node failed? |
|
isLeaf ( ) |
Is this node a leaf node? |
|
putChild ( $node ) |
Add an edge to a child node |
|