Class Condition

    • Constructor Detail

      • Condition

        public Condition​(String leftValue,
                         String trueLabel,
                         String falseLabel)
    • Method Detail

      • getLeftValue

        public String getLeftValue()
        Returns the name of the feature to compare to a constant.
      • getTrueLabel

        public String getTrueLabel()
        Return the label to jump to if this condition is true.
      • getFalseLabel

        public String getFalseLabel()
        Return the label to jump to if this condition is false.
      • toRankingExpression

        public final String toRankingExpression()
        Description copied from class: TreeNode
        Returns a ranking expression equivalent of this net.
        Specified by:
        toRankingExpression in class TreeNode
      • conditionToRankingExpression

        protected abstract String conditionToRankingExpression()
        Returns the ranking expression string for the condition part of this condition, i.e the ... part of
             if(leftValue ..., trueExpression, falseExpression)