Package com.yahoo.search.intent.model
Class Node
java.lang.Object
com.yahoo.search.intent.model.Node
- All Implemented Interfaces:
Comparable<Node>
- Direct Known Subclasses:
ParentNode,SourceNode
A node in the intent model tree
- Author:
- bratseth
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleandoublegetScore()Returns the normalized (0-1) score of this nodeinthashCode()doubleincreaseScore(double increment) Increases this score by an increment and returns the new scorevoidsetScore(double score) Sets the normalized (0-1) score of this node
-
Constructor Details
-
Node
public Node(double score)
-
-
Method Details
-
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
- Specified by:
compareToin interfaceComparable<Node>
-
equals
-
hashCode
public int hashCode()
-