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
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
Returns 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 String
Returns 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:TreeNode
Returns a ranking expression equivalent of this net.- Specified by:
toRankingExpression
in classTreeNode
-
conditionToRankingExpression
Returns the ranking expression string for the condition part of this condition, i.e the ... part ofif(leftValue ..., trueExpression, falseExpression)
-