procope.tools.userclasses
Class DummyClusterer
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DummyClusterer
public DummyClusterer(int a,
int b)
- Create new test clusterer
- Parameters:
a
- first integer parameterb
- second integer parameter
- Throws:
ProCopeException
- if a==b (for testing purposes)
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