Package com.yahoo.searchlib.treenet.rule
Class Condition
java.lang.Object
com.yahoo.searchlib.treenet.rule.TreeNode
com.yahoo.searchlib.treenet.rule.Condition
- Direct Known Subclasses:
ComparisonCondition,SetMembershipCondition
Represents a condition
- Author:
- bratseth
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringReturns the ranking expression string for the condition part of this condition, i.e the ...Return the label to jump to if this condition is false.Returns the name of the feature to compare to a constant.Return the label to jump to if this condition is true.final StringReturns a ranking expression equivalent of this net.
-
Constructor Details
-
Condition
-
-
Method Details
-
getLeftValue
Returns the name of the feature to compare to a constant. -
getTrueLabel
Return the label to jump to if this condition is true. -
getFalseLabel
Return the label to jump to if this condition is false. -
toRankingExpression
Description copied from class:TreeNodeReturns a ranking expression equivalent of this net.- Specified by:
toRankingExpressionin classTreeNode
-
conditionToRankingExpression
Returns the ranking expression string for the condition part of this condition, i.e the ... part ofif(leftValue ..., trueExpression, falseExpression)
-