edu.uchsc.ccp.iaa.matcher
Class FeatureMatcher

java.lang.Object
  extended by edu.uchsc.ccp.iaa.matcher.FeatureMatcher
All Implemented Interfaces:
Matcher

public class FeatureMatcher
extends Object
implements Matcher


Constructor Summary
FeatureMatcher()
           
FeatureMatcher(String name)
           
 
Method Summary
 void addComparedComplexFeature(String complexFeatureName, ComplexFeatureMatchCriteria matchCriteria)
           
 void addComparedSimpleFeatures(String simpleFeatureName)
           
 String getDescription()
           
 int getMatchSpans()
           
 String getName()
           
 Annotation match(Annotation annotation, String compareSetName, Set<Annotation> excludeAnnotations, IAA iaa, MatchResult matchResult)
           
 boolean returnsTrivials()
           
 void setMatchClasses(boolean matchClasses)
           
 void setMatchSpans(int matchSpans)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureMatcher

public FeatureMatcher()

FeatureMatcher

public FeatureMatcher(String name)
Method Detail

setMatchClasses

public void setMatchClasses(boolean matchClasses)

setMatchSpans

public void setMatchSpans(int matchSpans)

addComparedSimpleFeatures

public void addComparedSimpleFeatures(String simpleFeatureName)

addComparedComplexFeature

public void addComparedComplexFeature(String complexFeatureName,
                                      ComplexFeatureMatchCriteria matchCriteria)

match

public Annotation match(Annotation annotation,
                        String compareSetName,
                        Set<Annotation> excludeAnnotations,
                        IAA iaa,
                        MatchResult matchResult)
Specified by:
match in interface Matcher
Parameters:
annotation - the annotation that is to be matched
compareSetName - the set of annotations that we will look for a match in
excludeAnnotations - a set of annotations that cannot be the return value
iaa - an instance of IAA from which to get information about annotations
matchResult - instantiate a new MatchType and pass it to the method. The method must set the result to one of the four result values given in MatchResult.
Returns:
the annotation that was matched. If none exists then return null.

getName

public String getName()
Specified by:
getName in interface Matcher

getDescription

public String getDescription()
Specified by:
getDescription in interface Matcher

returnsTrivials

public boolean returnsTrivials()
Specified by:
returnsTrivials in interface Matcher

getMatchSpans

public int getMatchSpans()