nct.networkblast.filter
Class UniqueCompatNodeFilter

java.lang.Object
  extended by nct.networkblast.filter.UniqueCompatNodeFilter
All Implemented Interfaces:
Filter<java.lang.String,java.lang.Double>

public class UniqueCompatNodeFilter
extends java.lang.Object
implements Filter<java.lang.String,java.lang.Double>

This Filter filters graphs based on whether the subnodes that form the compatibility nodes that represent nodes in this graph are all unique. The goal is to prevent any distance 0 nodes.


Constructor Summary
UniqueCompatNodeFilter()
           
 
Method Summary
 java.util.List<Graph<java.lang.String,java.lang.Double>> filter(java.util.List<Graph<java.lang.String,java.lang.Double>> solutions)
          This provides the basic foundation for filtering.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueCompatNodeFilter

public UniqueCompatNodeFilter()
Method Detail

filter

public java.util.List<Graph<java.lang.String,java.lang.Double>> filter(java.util.List<Graph<java.lang.String,java.lang.Double>> solutions)
Description copied from interface: Filter
This provides the basic foundation for filtering. Basic filter to be written should include removing duplicate solutions, merging solutions, and finding significant complexes. This function is defined NOT to modify the solutions List.

Specified by:
filter in interface Filter<java.lang.String,java.lang.Double>
Parameters:
solutions - The List of solutions to process.
Returns:
Either a filtered solution set or null if solutions is null.