|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.uni_leipzig.cvk.data.cluster.ClusterContext
public class ClusterContext
This class represents the clients context interface and
holds a concrete ClusterAlgorithm instance,
clients can select, add and use an available cluster algorithm instance.
The cluster(String[], double, String, String, String, String) method delegates task
to a clusterAlgorithm instance.
![]() |
![]() |
| Field Summary | |
|---|---|
protected ClusterAlgorithm |
clusterAlgorithm
an instance of the current ClusterAlgorithm |
protected java.util.Map<java.lang.String,ClusterAlgorithm> |
clusterAlgorithmMap
all added algorithms |
| Constructor Summary | |
|---|---|
ClusterContext()
Initializes the all available algorithms and sets the LogPanelHandler Handler to the Logger. |
|
| Method Summary | |
|---|---|
ClusterAlgorithm |
addAlgorithm(java.lang.String name,
ClusterAlgorithm ca)
Adds a new instance of a ClusterAlgorithm. |
prefuse.data.Table |
cluster(java.lang.String[] seeds,
double threshold,
java.lang.String value_A,
java.lang.String value_B,
java.lang.String value_C,
java.lang.String value_D)
The cluster method gets the cluster back in a table. |
java.lang.String[] |
getA()
Available settings of current cluster algorithm. |
java.lang.String[] |
getAlgorithmNames()
Gets all available algorithm names. |
java.lang.String[] |
getB()
Available settings of current cluster algorithm. |
java.lang.String[] |
getC()
Available settings of current cluster algorithm. |
java.lang.String |
getCurrentAlgorithmName()
|
java.lang.String[] |
getD()
Available settings of current cluster algorithm. |
void |
setAlgorithm(java.lang.String name)
select an available algorithm by the given unique name, to get access of the concrete configurations. |
void |
setAlgorithm(java.lang.String filename,
java.lang.String name)
Select an available algorithm by the given unique name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ClusterAlgorithm clusterAlgorithm
protected java.util.Map<java.lang.String,ClusterAlgorithm> clusterAlgorithmMap
| Constructor Detail |
|---|
public ClusterContext()
LogPanelHandler Handler to the Logger.
| Method Detail |
|---|
public ClusterAlgorithm addAlgorithm(java.lang.String name,
ClusterAlgorithm ca)
name - the unique name of the algorithmca - the algorithm instance
public prefuse.data.Table cluster(java.lang.String[] seeds,
double threshold,
java.lang.String value_A,
java.lang.String value_B,
java.lang.String value_C,
java.lang.String value_D)
seeds - all selected seedsthreshold - threshold in percentvalue_A - value of config_A arrayvalue_B - value of config_B arrayvalue_C - value of config_C arrayvalue_D - value of config_D array
public java.lang.String[] getA()
public java.lang.String[] getAlgorithmNames()
public java.lang.String[] getB()
public java.lang.String[] getC()
public java.lang.String getCurrentAlgorithmName()
public java.lang.String[] getD()
public void setAlgorithm(java.lang.String name)
public void setAlgorithm(java.lang.String filename,
java.lang.String name)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||