Class Response


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

      Constructors 
      Constructor Description
      Response​(java.lang.Double value, java.lang.String next)
      Constructs a new response.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getNext()
      Returns the id of the next tree to run after this.
      java.lang.Double getValue()
      Returns the value of this response.
      java.lang.String toRankingExpression()
      Returns a ranking expression equivalent of this net.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Response

        public Response​(java.lang.Double value,
                        java.lang.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 Detail

      • getValue

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

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

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