edu.washington.cs.supple.customization.scope.versionspace
Class NameSetHypothesis

java.lang.Object
  extended byedu.washington.cs.supple.customization.scope.versionspace.NameSetHypothesis
All Implemented Interfaces:
Hypothesis
Direct Known Subclasses:
ApplicationNameSetHypothesis, DeviceNameSetHypothesis, ObjectNameSetHypothesis

public abstract class NameSetHypothesis
extends java.lang.Object
implements Hypothesis

Author:
raphael

Field Summary
 
Fields inherited from interface edu.washington.cs.supple.customization.scope.versionspace.Hypothesis
EQUAL, INCOMPARABLE, MORE_GENERAL, MORE_SPECIFIC
 
Constructor Summary
protected NameSetHypothesis(java.util.LinkedList set)
           
 
Method Summary
 int compareTo(Hypothesis h)
           
protected abstract  NameSetHypothesis getHypothesis(TrainingSample d)
           
protected abstract  java.lang.String getName(TrainingSample d)
           
 java.util.LinkedList getSet()
           
protected abstract  NameSetHypothesis instance(java.util.LinkedList l)
           
 boolean isConsistentWith(TrainingSample d)
           
 java.util.List minimalGeneralizations(Hypothesis h)
           
 java.util.List minimalGeneralizations(TrainingSample d)
           
 java.util.List minimalSpecializations(Hypothesis h)
           
 java.util.List minimalSpecializations(TrainingSample d)
           
 java.lang.String[] toXPath()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameSetHypothesis

protected NameSetHypothesis(java.util.LinkedList set)
Method Detail

instance

protected abstract NameSetHypothesis instance(java.util.LinkedList l)

getName

protected abstract java.lang.String getName(TrainingSample d)

getHypothesis

protected abstract NameSetHypothesis getHypothesis(TrainingSample d)

getSet

public java.util.LinkedList getSet()

isConsistentWith

public boolean isConsistentWith(TrainingSample d)
Specified by:
isConsistentWith in interface Hypothesis

minimalGeneralizations

public java.util.List minimalGeneralizations(TrainingSample d)
Specified by:
minimalGeneralizations in interface Hypothesis

minimalGeneralizations

public java.util.List minimalGeneralizations(Hypothesis h)
Specified by:
minimalGeneralizations in interface Hypothesis

minimalSpecializations

public java.util.List minimalSpecializations(TrainingSample d)
Specified by:
minimalSpecializations in interface Hypothesis

minimalSpecializations

public java.util.List minimalSpecializations(Hypothesis h)
Specified by:
minimalSpecializations in interface Hypothesis

compareTo

public int compareTo(Hypothesis h)
Specified by:
compareTo in interface Hypothesis

toXPath

public java.lang.String[] toXPath()
Specified by:
toXPath in interface Hypothesis