public class AnalyseLinks
extends java.lang.Object
exists
returns true.Constructor and Description |
---|
AnalyseLinks()
Create a new instance of AnalyseLinks.
|
Modifier and Type | Method and Description |
---|---|
void |
analyseLinks(java.util.ArrayList<?> links,
LinkQueryConfig queryConfig)
Add analysis about the current set of link reference values.
|
void |
analyseLinks(org.ai_heuristic.tree.TreeNode treeNode,
LinkQueryConfig queryConfig)
Add analysis about the current set of tree nodes.
|
boolean |
exists()
Return true if a link exists anywhere in the analysis.
|
java.util.ArrayList<java.lang.String> |
getBestLinks()
Get the best reference link(s) over the analysis query.
|
java.util.HashMap<java.lang.String,java.lang.Float> |
getValueCounts()
Get the unprocessed list of reference objects, with a count of occurrences for each one.
|
void |
resetValues()
Reset for the start of an analysis.
|
java.lang.String |
toString()
Convert the values into a string-based description.
|
public AnalyseLinks() throws java.lang.Exception
java.lang.Exception
- any error.public void resetValues() throws java.lang.Exception
java.lang.Exception
- any error.public void analyseLinks(org.ai_heuristic.tree.TreeNode treeNode, LinkQueryConfig queryConfig) throws java.lang.Exception
finaliseAnalysis
after these calls, to perform some stats
over the analysis objects.treeNode
- the tree node to add the analysis for.queryConfig
- the query configuration.java.lang.Exception
- any error.public void analyseLinks(java.util.ArrayList<?> links, LinkQueryConfig queryConfig) throws java.lang.Exception
finaliseAnalysis
after these calls, to perform some stats
over the analysis objects.links
- list of link reference values, probably of type String.queryConfig
- the query configuration.java.lang.Exception
- any error.public boolean exists()
public java.util.ArrayList<java.lang.String> getBestLinks()
bestLinks
reference sources.public java.util.HashMap<java.lang.String,java.lang.Float> getValueCounts()
public java.lang.String toString()
toString
in class java.lang.Object