public class SourceNode extends Node
Constructor and Description |
---|
SourceNode(Source source,
double score) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addSources(double weight,
Map<Source,SourceNode> sources)
Adds the sources at (and beneath) this node to the given
sparsely represented source vector, weighted by the score of this node
times the given weight from the parent path
|
Source |
getSource()
Returns the source of this node
|
void |
setSource(Source source)
Sets the source of this node
|
String |
toString()
Returns source:appropriateness
|
compareTo, getScore, increaseScore, setScore
private Source source
public SourceNode(Source source, double score)
public void setSource(Source source)
public Source getSource()
void addSources(double weight, Map<Source,SourceNode> sources)
Node
addSources
in class Node
Copyright © 2018. All rights reserved.