Package com.valhalla.sdk.tasks.tree
Class Root
java.lang.Object
com.valhalla.sdk.tasks.tree.Leaf
com.valhalla.sdk.tasks.tree.Branch
com.valhalla.sdk.tasks.tree.Root
- All Implemented Interfaces:
Sleepable
Always-valid root of a
TreeScript.-
Method Summary
Modifier and TypeMethodDescriptionaddBranches(Leaf... leaves) Appends top-level nodes in selection order.getTree()Returns the owning tree.booleanisValid()Reports root validity.Methods inherited from class com.valhalla.sdk.tasks.tree.Branch
addLeaves, clear, getChildren, onLoopMethods inherited from class com.valhalla.sdk.tasks.tree.Leaf
getContext, getParent, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.valhalla.sdk.api.util.Sleepable
sleep, sleep, sleepUntil, sleepUntil, sleepUntil, sleepWhile, sleepWhile, sleepWhile
-
Method Details
-
isValid
public boolean isValid()Reports root validity. -
getTree
Returns the owning tree. -
addBranches
Appends top-level nodes in selection order.- Parameters:
leaves- branches or executable leaves to attach- Returns:
- this root for fluent registration
-