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

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.HeuristicQueryGenerator
All Implemented Interfaces:
ElicitationQueryGenerator

public class HeuristicQueryGenerator
extends DistanceBasedQueryGenerator

Author:
kgajos Based on the Supple-specific heuristic described in our UIST'05 paper

Nested Class Summary
 
Nested classes inherited from class edu.washington.cs.supple.render.utility.DistanceBasedQueryGenerator
DistanceBasedQueryGenerator.ConstraintInfo
 
Field Summary
 
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
HeuristicQueryGenerator()
           
 
Method Summary
protected  double computeConstraintScore(FactorConstraint constraint)
           
protected  void generateCandidates(Widget root)
           
protected  void generateConstraintsForDomain(ElicitationQueryDomain domain)
           
protected  void generateConstraintsForUI(UiObject root, ElicitationQueryDomain domain)
           
protected  void scoreConstraints()
           
 
Methods inherited from class edu.washington.cs.supple.render.utility.DistanceBasedQueryGenerator
constructQuery, generateConstraintsForElement, generateConstraintsForUI, generateQuery, getBestConstraint, getConstraintInfo, getConstraintScore, isGoodCandidate, reset, 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
 

Constructor Detail

HeuristicQueryGenerator

public HeuristicQueryGenerator()
Method Detail

scoreConstraints

protected void scoreConstraints()
Overrides:
scoreConstraints in class DistanceBasedQueryGenerator

computeConstraintScore

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

generateConstraintsForDomain

protected void generateConstraintsForDomain(ElicitationQueryDomain domain)
Overrides:
generateConstraintsForDomain in class DistanceBasedQueryGenerator

generateConstraintsForUI

protected void generateConstraintsForUI(UiObject root,
                                        ElicitationQueryDomain domain)

generateCandidates

protected void generateCandidates(Widget root)