bcds.phison.clustering
Class Dummy<V,E>

java.lang.Object
  extended by bcds.phison.clustering.ClustererBase<V,E>
      extended by bcds.phison.clustering.Dummy<V,E>
All Implemented Interfaces:
Clusterer<V,E>, WithEnvParams

public class Dummy<V,E>
extends ClustererBase<V,E>
implements Clusterer<V,E>

Dummy creates one "cluster" per node. In fact, no clustering is created (hence, Dummy).

Author:
Juan Segovia S.

Constructor Summary
Dummy()
          Default constructor.
Dummy(SimGraph<V,E> g)
          Creates a new instance with edge cost set to 1 and an empty environment.
 
Method Summary
 java.util.Map<V,java.lang.Integer> run()
          Returns each node assigned to its own cluster.
 
Methods inherited from class bcds.phison.clustering.ClustererBase
dump, getEnviron, getEnvParams, getName, getNodeMapping, groupByClusterId, setNodeMapping, setup
 
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, setup
 
Methods inherited from interface bcds.phison.WithEnvParams
getEnviron, getEnvParams, getName
 

Constructor Detail

Dummy

public Dummy()
Default constructor.


Dummy

public Dummy(SimGraph<V,E> g)
Creates a new instance with edge cost set to 1 and an empty environment.

Method Detail

run

public java.util.Map<V,java.lang.Integer> run()
Returns each node assigned to its own cluster.

Specified by:
run in interface Clusterer<V,E>