Package com.yahoo.searchlib.treenet.rule
Class Tree
java.lang.Object
com.yahoo.searchlib.treenet.rule.Tree
- Author:
- Simon Thoresen Hult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBegin()
Returns the id of the first condition or response to run in this tree.getName()
getNext()
Returns the id of the next tree to run after this.getNodes()
Returns all named nodes of this tree.Returns the parent tree net of this.getValue()
Returns the initial response value of this tree, may be null.Sets the parent tree net of this.Returns a ranking expression equivalent of this tree.
-
Constructor Details
-
Tree
Constructs a new tree.- Parameters:
name
- The name of this tree, used for error outputs.value
- The initial response value of this tree, may be null.begin
- The id of the first condition or response to run in this tree.nodes
- All named nodes of this tree.
-
-
Method Details
-
getName
-
getParent
Returns the parent tree net of this. -
setParent
Sets the parent tree net of this.- Parameters:
parent
- The parent tree net.- Returns:
- This, to allow chaining.
-
getNext
Returns the id of the next tree to run after this. -
getValue
Returns the initial response value of this tree, may be null. -
getBegin
Returns the id of the first condition or response to run in this tree. -
getNodes
Returns all named nodes of this tree. -
toRankingExpression
Returns a ranking expression equivalent of this tree.
-