edu.washington.cs.supple.render.utility
Class ElicitationQueryDomain
java.lang.Object
edu.washington.cs.supple.render.utility.ElicitationQueryDomain
- public class ElicitationQueryDomain
- extends java.lang.Object
- Author:
- kgajos
Contains all the interface definitions and sets of size constraints for each
that should be used to generate elicitation queries
|
Field Summary |
protected java.util.Hashtable |
interfaces
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
interfaces
protected java.util.Hashtable interfaces
ElicitationQueryDomain
public ElicitationQueryDomain()
addInterface
public void addInterface(UiObject root,
java.util.Collection sizeConstraints)
addInterface
public void addInterface(UiObject root,
java.awt.Dimension sizeConstraint)
getInterfaces
public java.util.Vector getInterfaces()
getSizeConstraints
public java.util.Collection getSizeConstraints(UiObject root)
getSumCosts
public double getSumCosts(UiObject root,
FactoredCostFunction evalutionCostFunction,
FactoredCostCalculator costCalculator)
- returns the sum of costs of the best solutions for the renderings for a
given ui object (that has to be in this query domain) for all the
specified size constraints. The trick is that it uses the system default
cost function to build the solutions but it is using the supplied cost
function to evaluate the solutions. This allows us to track the progress
of elicitation copmared to a known "true" cost function
- Parameters:
root - evalutionCostFunction - costCalculator -
- Returns:
getSumCosts
public double getSumCosts(FactoredCostFunction evalutionCostFunction,
FactoredCostCalculator costCalculator)