edu.washington.cs.supple.wlib.java2
Class MinimaxRegretFactoredCostFunctionQueryDisplay

java.lang.Object
  extended byedu.washington.cs.supple.wlib.java2.MinimaxRegretFactoredCostFunctionQueryDisplay

public class MinimaxRegretFactoredCostFunctionQueryDisplay
extends java.lang.Object

This class allows us to pose queries to the user, queries that will enable us to reduce uncertainty in the specification of a factored cost function

Author:
kgajos

Field Summary
protected  FactoredCostFunction cf1
           
protected  FactoredCostFunction cf2
           
protected  FactoredCostFunction costFunction
           
protected  javax.swing.JFrame frame
           
protected  FactoredCostFunction ncf
           
protected  UiObject rootObject
           
protected  java.awt.Dimension sizeConstraint
           
protected  javax.swing.JTabbedPane solutionPane
           
 
Constructor Summary
MinimaxRegretFactoredCostFunctionQueryDisplay(FactoredCostFunction costFunction, UiObject rootObject, java.awt.Dimension size)
          Initializes the query display (but does not run any optimizations or display anything to the user)
 
Method Summary
protected  void displaySolution(java.lang.String name, Solution solution)
          Displays rendred UI options for user's scrutiny
 void runQuery()
          Executes the query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

costFunction

protected FactoredCostFunction costFunction

cf1

protected FactoredCostFunction cf1

cf2

protected FactoredCostFunction cf2

ncf

protected FactoredCostFunction ncf

rootObject

protected UiObject rootObject

sizeConstraint

protected java.awt.Dimension sizeConstraint

frame

protected javax.swing.JFrame frame

solutionPane

protected javax.swing.JTabbedPane solutionPane
Constructor Detail

MinimaxRegretFactoredCostFunctionQueryDisplay

public MinimaxRegretFactoredCostFunctionQueryDisplay(FactoredCostFunction costFunction,
                                                     UiObject rootObject,
                                                     java.awt.Dimension size)
Initializes the query display (but does not run any optimizations or display anything to the user)

Parameters:
costFunction - cost function to be analyzed
rootObject - UI object to be used for the query
size - size constraint
Method Detail

runQuery

public void runQuery()
Executes the query


displaySolution

protected void displaySolution(java.lang.String name,
                               Solution solution)
Displays rendred UI options for user's scrutiny

Parameters:
name - a name to be associated with a displayed option
solution - the rendering to be displayed