edu.washington.cs.supple.render.utility
Class DistanceBasedQueryGenerator
java.lang.Object
edu.washington.cs.supple.render.utility.AbstractElicitationQueryGenerator
edu.washington.cs.supple.render.utility.DistanceBasedQueryGenerator
- All Implemented Interfaces:
- ElicitationQueryGenerator
- Direct Known Subclasses:
- HeuristicQueryGenerator, RandomQueryGenerator, VersionSpaceQueryGenerator
- public abstract class DistanceBasedQueryGenerator
- extends AbstractElicitationQueryGenerator
- Author:
- kgajos
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 |
constraints
protected java.util.Hashtable constraints
constraintScores
protected java.util.Hashtable constraintScores
previouslyUsedConstraints
protected java.util.Vector previouslyUsedConstraints
DistanceBasedQueryGenerator
public DistanceBasedQueryGenerator()
reset
protected void reset()
generateQuery
public ElicitationQuery generateQuery(ElicitationQueryDomain domain,
FactoredCostFunction curCostFunction)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
generateConstraintsForDomain
protected void generateConstraintsForDomain(ElicitationQueryDomain domain)
generateConstraintsForUI
protected void generateConstraintsForUI(UiObject root)
generateConstraintsForElement
protected void generateConstraintsForElement(UiObject root,
UiObject element)
isGoodCandidate
protected boolean isGoodCandidate(FactorConstraint constraint)
scoreConstraints
protected void scoreConstraints()
computeConstraintScore
protected abstract double computeConstraintScore(FactorConstraint constraint)
setConstraintScore
protected void setConstraintScore(FactorConstraint constraint,
double score)
getConstraintScore
protected double getConstraintScore(FactorConstraint constraint)
getConstraintInfo
protected DistanceBasedQueryGenerator.ConstraintInfo getConstraintInfo(FactorConstraint constraint)
getBestConstraint
protected FactorConstraint getBestConstraint()
constructQuery
protected ElicitationQuery constructQuery(FactorConstraint constraint)