Class Node

  • All Implemented Interfaces:
    java.lang.Comparable<Node>
    Direct Known Subclasses:
    ParentNode, SourceNode

    public abstract class Node
    extends java.lang.Object
    implements java.lang.Comparable<Node>
    A node in the intent model tree
    Author:
    bratseth
    • Constructor Summary

      Constructors 
      Constructor Description
      Node​(double score)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(Node other)  
      boolean equals​(java.lang.Object other)  
      double getScore()
      Returns the normalized (0-1) score of this node
      int hashCode()  
      double increaseScore​(double increment)
      Increases this score by an increment and returns the new score
      void setScore​(double score)
      Sets the normalized (0-1) score of this node
      • Methods inherited from class java.lang.Object

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

      • Node

        public Node​(double score)
    • Method Detail

      • getScore

        public double getScore()
        Returns the normalized (0-1) score of this node
      • setScore

        public void setScore​(double score)
        Sets the normalized (0-1) score of this node
      • increaseScore

        public double increaseScore​(double increment)
        Increases this score by an increment and returns the new score
      • compareTo

        public int compareTo​(Node other)
        Specified by:
        compareTo in interface java.lang.Comparable<Node>
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object