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

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

public class BasicQueryGenerator
extends AbstractElicitationQueryGenerator

Author:
kgajos

Field Summary
protected  double closestSecondDiff
           
protected  Widget closestSecondWidget
           
protected  double largestBetterDiff
           
protected  Widget largestBetterWidget
           
protected  double smallestBetterDiff
           
protected  Widget smallestBetterWidget
           
 
Fields inherited from class edu.washington.cs.supple.render.utility.AbstractElicitationQueryGenerator
constraintGenerator, costCalculator, costFunction, queryHistory, solver, vetoFunction, widgetFactory
 
Constructor Summary
BasicQueryGenerator()
           
 
Method Summary
protected  void generateCandidates(Widget root)
           
 ElicitationQuery generateQuery(ElicitationQueryDomain domain, FactoredCostFunction curCostFunction)
           
 ElicitationQuery generateQuery(UiObject root, java.awt.Dimension sizeConstraint, FactoredCostFunction curCostFunction)
           
 
Methods inherited from class edu.washington.cs.supple.render.utility.AbstractElicitationQueryGenerator
addToQueryHistory, generatePerturbedSolution, 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

closestSecondDiff

protected double closestSecondDiff

largestBetterDiff

protected double largestBetterDiff

smallestBetterDiff

protected double smallestBetterDiff

closestSecondWidget

protected Widget closestSecondWidget

largestBetterWidget

protected Widget largestBetterWidget

smallestBetterWidget

protected Widget smallestBetterWidget
Constructor Detail

BasicQueryGenerator

public BasicQueryGenerator()
Method Detail

generateQuery

public ElicitationQuery generateQuery(UiObject root,
                                      java.awt.Dimension sizeConstraint,
                                      FactoredCostFunction curCostFunction)
                               throws java.lang.InterruptedException
Specified by:
generateQuery in interface ElicitationQueryGenerator
Overrides:
generateQuery in class AbstractElicitationQueryGenerator
Throws:
java.lang.InterruptedException

generateCandidates

protected void generateCandidates(Widget root)

generateQuery

public ElicitationQuery generateQuery(ElicitationQueryDomain domain,
                                      FactoredCostFunction curCostFunction)
                               throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException