edu.washington.cs.supple.render.utility
Class VersionSpaceQueryGenerator

java.lang.Object
  extended byedu.washington.cs.supple.render.utility.AbstractElicitationQueryGenerator
      extended byedu.washington.cs.supple.render.utility.DistanceBasedQueryGenerator
          extended byedu.washington.cs.supple.render.utility.VersionSpaceQueryGenerator
All Implemented Interfaces:
ElicitationQueryGenerator

public class VersionSpaceQueryGenerator
extends DistanceBasedQueryGenerator

Author:
kgajos

Nested Class Summary
 
Nested classes inherited from class edu.washington.cs.supple.render.utility.DistanceBasedQueryGenerator
DistanceBasedQueryGenerator.ConstraintInfo
 
Field Summary
protected  FactoredCostConstraintGenerator generator
           
 
Fields inherited from class edu.washington.cs.supple.render.utility.DistanceBasedQueryGenerator
constraints, constraintScores, previouslyUsedConstraints
 
Fields inherited from class edu.washington.cs.supple.render.utility.AbstractElicitationQueryGenerator
constraintGenerator, costCalculator, costFunction, queryHistory, solver, vetoFunction, widgetFactory
 
Constructor Summary
VersionSpaceQueryGenerator()
           
 
Method Summary
protected  double computeConstraintScore(FactorConstraint constraint)
           
protected  double getDistanceFromCurCostFunction(FactorConstraint constraint)
           
protected  double getScaleForFactor(java.lang.String factorName)
           
 
Methods inherited from class edu.washington.cs.supple.render.utility.DistanceBasedQueryGenerator
constructQuery, generateConstraintsForDomain, generateConstraintsForElement, generateConstraintsForUI, generateQuery, getBestConstraint, getConstraintInfo, getConstraintScore, isGoodCandidate, reset, scoreConstraints, setConstraintScore
 
Methods inherited from class edu.washington.cs.supple.render.utility.AbstractElicitationQueryGenerator
addToQueryHistory, generatePerturbedSolution, generateQuery, getCostDifference, getPossibleWidgets, getPossibleWidgets, init, isGoodQueryCandidate, isGoodQueryCandidate, makeFactorConstraint, makeFactorConstraint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

generator

protected FactoredCostConstraintGenerator generator
Constructor Detail

VersionSpaceQueryGenerator

public VersionSpaceQueryGenerator()
Method Detail

computeConstraintScore

protected double computeConstraintScore(FactorConstraint constraint)
Specified by:
computeConstraintScore in class DistanceBasedQueryGenerator

getDistanceFromCurCostFunction

protected double getDistanceFromCurCostFunction(FactorConstraint constraint)

getScaleForFactor

protected double getScaleForFactor(java.lang.String factorName)