org.fhcrc.cpl.viewer.amt
Class AmtFeatureSetMatcher.FeatureMatchingResult

java.lang.Object
  extended by org.fhcrc.cpl.viewer.amt.AmtFeatureSetMatcher.FeatureMatchingResult
Enclosing interface:
AmtFeatureSetMatcher

public static class AmtFeatureSetMatcher.FeatureMatchingResult
extends java.lang.Object

This class represents the result of running FeatureSetMatcher.matchFeatures(). Pulling this out into its own class to make it utterly obvious what goes where, and to make it easier to change in the future. This has already had to undergo one revision. Initially, I returned a list of pairs of features. Now I'm returning (essentially) a Map. Each matched feature in the master feature set is associated with a list of features in the slave feature set. By convention, if a featuresetmatcher is able to assign an order of likelihood to the matches, the list should be in descending order of likelihood, i.e., best one first.


Constructor Summary
AmtFeatureSetMatcher.FeatureMatchingResult()
           
 
Method Summary
 void add(Feature masterSetFeature, Feature slaveSetFeature)
           
 java.util.List<Feature> get(Feature masterSetFeature)
           
 Feature getBestMatch(Feature masterSetFeature)
           
 java.util.Set<Feature> getMasterSetFeatures()
           
 java.util.Map<Feature,java.util.List<Feature>> getMasterSlaveFeatureMap()
           
 java.util.Set<Feature> getSlaveSetFeatures()
           
 java.util.List<Feature> getSlaveSetFeatures(Feature masterSetFeature)
           
protected  void init()
           
 void put(Feature masterSetFeature, java.util.List<Feature> slaveSetFeatures)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmtFeatureSetMatcher.FeatureMatchingResult

public AmtFeatureSetMatcher.FeatureMatchingResult()
Method Detail

init

protected void init()

put

public void put(Feature masterSetFeature,
                java.util.List<Feature> slaveSetFeatures)

add

public void add(Feature masterSetFeature,
                Feature slaveSetFeature)

getMasterSetFeatures

public java.util.Set<Feature> getMasterSetFeatures()

getSlaveSetFeatures

public java.util.Set<Feature> getSlaveSetFeatures()

getSlaveSetFeatures

public java.util.List<Feature> getSlaveSetFeatures(Feature masterSetFeature)

get

public java.util.List<Feature> get(Feature masterSetFeature)

getBestMatch

public Feature getBestMatch(Feature masterSetFeature)

size

public int size()

getMasterSlaveFeatureMap

public java.util.Map<Feature,java.util.List<Feature>> getMasterSlaveFeatureMap()


Fred Hutchinson Cancer Research Center