Class Response

java.lang.Object
com.yahoo.searchlib.treenet.rule.TreeNode
com.yahoo.searchlib.treenet.rule.Response

public class Response extends TreeNode
Author:
Simon Thoresen Hult
  • Constructor Details

    • Response

      public Response(Double value, String next)
      Constructs a new response.
      Parameters:
      next - The id of the next tree to run after this.
      value - The value of this response.
  • Method Details

    • getValue

      public Double getValue()
      Returns the value of this response.
    • getNext

      public String getNext()
      Returns the id of the next tree to run after this.
    • toRankingExpression

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