public abstract class Node extends Object implements Comparable<Node>
Constructor and Description |
---|
Node(double score) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Node other) |
double |
getScore()
Returns the normalized (0-1) score of this node
|
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
|
public double getScore()
public void setScore(double score)
public double increaseScore(double increment)
public int compareTo(Node other)
compareTo
in interface Comparable<Node>
Copyright © 2018. All rights reserved.