com.wcohen.ss
Class CombinedStringDistanceLearner.MyDistanceInstance

java.lang.Object
  extended by com.wcohen.ss.CombinedStringDistanceLearner.MyDistanceInstance
All Implemented Interfaces:
DistanceInstance
Direct Known Subclasses:
CombinedStringDistanceLearner.MyMultiDistanceInstance
Enclosing class:
CombinedStringDistanceLearner

protected class CombinedStringDistanceLearner.MyDistanceInstance
extends java.lang.Object
implements DistanceInstance


Field Summary
protected  StringWrapper a
           
protected  StringWrapper b
           
protected  boolean correct
           
protected  double distance
           
 
Fields inherited from interface com.wcohen.ss.api.DistanceInstance
INCREASING_DISTANCE
 
Constructor Summary
CombinedStringDistanceLearner.MyDistanceInstance(StringWrapper a, StringWrapper b, boolean correct, double distance)
           
 
Method Summary
 StringWrapper getA()
           
 StringWrapper getB()
           
 double getDistance()
           
 boolean isCorrect()
           
 void setDistance(double distance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

a

protected StringWrapper a

b

protected StringWrapper b

correct

protected boolean correct

distance

protected double distance
Constructor Detail

CombinedStringDistanceLearner.MyDistanceInstance

public CombinedStringDistanceLearner.MyDistanceInstance(StringWrapper a,
                                                        StringWrapper b,
                                                        boolean correct,
                                                        double distance)
Method Detail

getA

public StringWrapper getA()
Specified by:
getA in interface DistanceInstance

getB

public StringWrapper getB()
Specified by:
getB in interface DistanceInstance

isCorrect

public boolean isCorrect()
Specified by:
isCorrect in interface DistanceInstance

getDistance

public double getDistance()
Specified by:
getDistance in interface DistanceInstance

setDistance

public void setDistance(double distance)
Specified by:
setDistance in interface DistanceInstance