public class Cluster extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Vector<ClusterExample> |
examples
The set of objects within the cluster
|
| Constructor and Description |
|---|
Cluster()
The cluster is initialized without any label
|
Cluster(String label)
The cluster is initialized and labeled
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(ClusterExample clusterExample) |
void |
clear()
This function clear the set of object inside the cluster
|
Vector<ClusterExample> |
getExamples()
This function returns the set of objects inside the cluster
|
String |
getLabel()
This function returns the label of the cluster
|
void |
setExamples(Vector<ClusterExample> examples)
This function initialize the set of objects inside the cluster
|
void |
setLabel(String label) |
int |
size()
This functions returns the number of objects inside the cluster
|
void |
sortAscendingOrder() |
void |
sortDescendingOrder() |
String |
toString() |
protected Vector<ClusterExample> examples
public Cluster()
public Cluster(String label)
label - public void add(ClusterExample clusterExample)
public void clear()
public Vector<ClusterExample> getExamples()
public String getLabel()
public void setExamples(Vector<ClusterExample> examples)
examples - The set of objectspublic void setLabel(String label)
public int size()
public void sortAscendingOrder()
public void sortDescendingOrder()
Copyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.