edu.indiana.iucbrf.feature.unknown
Class AbstractUnknownFeatureHandler

java.lang.Object
  extended by edu.indiana.iucbrf.feature.unknown.AbstractUnknownFeatureHandler
All Implemented Interfaces:
UnknownFeatureHandler, java.io.Serializable
Direct Known Subclasses:
AbstractCompositeUFH, DefaultValue

public abstract class AbstractUnknownFeatureHandler
extends java.lang.Object
implements UnknownFeatureHandler

Some basic abstract implementations of an UnknownFeatureHandler are provided.

See Also:
Serialized Form

Field Summary
protected  boolean debugMode
           
 
Constructor Summary
AbstractUnknownFeatureHandler()
          Creates a new instance of AbstractUnknownFeatureHandler
 
Method Summary
 double differenceOfUnknownFeature(Problem p0, Problem p1, FeatureKey featureOfInterest, java.util.Collection indicesToUse)
          Estimate the difference between p1[featureOfInterest] and p2[featureOfInterest] given that one or both values may be missing, optionally making use of indicesToUse in this calculation.
protected abstract  double differenceOfUnknownFeatureImpl(Problem p0, Problem p1, FeatureKey featureOfInterest, java.util.Collection indicesToUse)
           
 boolean getDebugMode()
           
 void setDebugMode(boolean debugMode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.indiana.iucbrf.feature.unknown.UnknownFeatureHandler
getAbbreviatedName, getName
 

Field Detail

debugMode

protected boolean debugMode
Constructor Detail

AbstractUnknownFeatureHandler

public AbstractUnknownFeatureHandler()
Creates a new instance of AbstractUnknownFeatureHandler

Method Detail

differenceOfUnknownFeature

public double differenceOfUnknownFeature(Problem p0,
                                         Problem p1,
                                         FeatureKey featureOfInterest,
                                         java.util.Collection indicesToUse)
Description copied from interface: UnknownFeatureHandler
Estimate the difference between p1[featureOfInterest] and p2[featureOfInterest] given that one or both values may be missing, optionally making use of indicesToUse in this calculation.

Specified by:
differenceOfUnknownFeature in interface UnknownFeatureHandler

differenceOfUnknownFeatureImpl

protected abstract double differenceOfUnknownFeatureImpl(Problem p0,
                                                         Problem p1,
                                                         FeatureKey featureOfInterest,
                                                         java.util.Collection indicesToUse)

getDebugMode

public boolean getDebugMode()
Specified by:
getDebugMode in interface UnknownFeatureHandler

setDebugMode

public void setDebugMode(boolean debugMode)
Specified by:
setDebugMode in interface UnknownFeatureHandler