|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbcds.phison.clustering.ClustererBase<V,E>
bcds.phison.clustering.ZoneAsCluster<V,E>
public class ZoneAsCluster<V,E>
ZoneAsCluster recasts zones in a ZoneMap object into clusters, that is, it adapts to the Clusterer interface an existing clustering arrangement.
The nodes in the default zone of the zonemap are always assigned to the cluster number 0.
Constructor Summary | |
---|---|
ZoneAsCluster()
Default constructor. |
|
ZoneAsCluster(SimGraph<V,E> g,
java.util.Map<E,? extends java.lang.Number> edge_cost,
ZoneMap<V,E> za)
Creates a new instance. |
Method Summary | |
---|---|
java.util.Map<V,java.lang.Integer> |
run()
Executes the clustering algorithm and returns the node to cluster-id mapping. |
void |
setup(SimGraph<V,E> g,
java.util.Map<E,? extends java.lang.Number> edge_cost,
Environ env)
Initializes this instance. |
Methods inherited from class bcds.phison.clustering.ClustererBase |
---|
dump, getEnviron, getEnvParams, getName, getNodeMapping, groupByClusterId, setNodeMapping |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bcds.phison.clustering.Clusterer |
---|
getNodeMapping, groupByClusterId, setNodeMapping |
Methods inherited from interface bcds.phison.WithEnvParams |
---|
getEnviron, getEnvParams, getName |
Constructor Detail |
---|
public ZoneAsCluster()
public ZoneAsCluster(SimGraph<V,E> g, java.util.Map<E,? extends java.lang.Number> edge_cost, ZoneMap<V,E> za)
za
is put into
a new instance environment and passed to setup.
Method Detail |
---|
public void setup(SimGraph<V,E> g, java.util.Map<E,? extends java.lang.Number> edge_cost, Environ env)
env
must contain a key
named zonemap whose value must be an instance of
ZoneMap
.
Note that the key is simply zonemap,without
the prefix "ZoneAsCluster.".
setup
in interface Clusterer<V,E>
setup
in class ClustererBase<V,E>
public java.util.Map<V,java.lang.Integer> run()
Clusterer
run
in interface Clusterer<V,E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |