| Modifier and Type | Field and Description |
|---|---|
java.util.HashMap<java.lang.String,Cluster> |
clusters
List of clusters representing a complete solution.
|
evaluation, name| Constructor and Description |
|---|
ClusterResult()
Create a new instance of ClusterResult.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCluster(Cluster cluster)
Add a new cluster to the result.
|
boolean |
containsCluster(java.util.ArrayList<?> list)
Return true if this result object contains a cluster with the indicated set of elements.
|
boolean |
containsKey(java.lang.String key)
Return true if this result object contains a cluster with the indicated key name.
|
java.lang.String |
toString()
Get a string-based description of this cluster result.
|
getEvaluation, getName, isClusterType, isErrorType, isMatchType, isValueType, setEvaluation, setNamepublic boolean containsKey(java.lang.String key)
throws java.lang.Exception
key - name of a cluster to check for.java.lang.Exception - any error.public boolean containsCluster(java.util.ArrayList<?> list)
throws java.lang.Exception
list - the cluster elements to compare with. This uses ObjectHandler.equals
to check if the elements are the same.java.lang.Exception - any error.public boolean addCluster(Cluster cluster)
cluster - the cluster to add.