procope.tools.userclasses
Class DummyClusterer

java.lang.Object
  extended by procope.tools.userclasses.DummyClusterer
All Implemented Interfaces:
Clusterer

public class DummyClusterer
extends Object
implements Clusterer

A simple user-defined clusterer. Not really functional, it always returns the two integer values it was given in the constructor as the resulting "clustering".

Author:
Jan Krumsiek

Constructor Summary
DummyClusterer(int a, int b)
          Create new test clusterer
 
Method Summary
 ComplexSet cluster(ProteinNetwork net)
          Implementation of the Clusterer.cluster(ProteinNetwork) method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyClusterer

public DummyClusterer(int a,
                      int b)
Create new test clusterer

Parameters:
a - first integer parameter
b - second integer parameter
Throws:
ProCopeException - if a==b (for testing purposes)
Method Detail

cluster

public ComplexSet cluster(ProteinNetwork net)
Implementation of the Clusterer.cluster(ProteinNetwork) method. Simply return the two integer values this clusterer object was given in the constructor.

Specified by:
cluster in interface Clusterer
Parameters:
net - similarity network which will be clustered
Returns:
the resulting clustering