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

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

public class RandomQueryGenerator
extends DistanceBasedQueryGenerator

Author:
kgajos Generates random queries -- a straw man

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
RandomQueryGenerator()
           
 
Method Summary
protected  double computeConstraintScore(FactorConstraint constraint)
           
 
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
 

Constructor Detail

RandomQueryGenerator

public RandomQueryGenerator()
Method Detail

computeConstraintScore

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