edu.washington.cs.supple.render
Class SuppleDeviceProperties

java.lang.Object
  extended byedu.washington.cs.supple.render.SuppleDeviceProperties

public class SuppleDeviceProperties
extends java.lang.Object

Author:
kgajos

Field Summary
protected static java.awt.Dimension availableScreenSize
           
protected static FactoredCostSolver bayesianSolver
           
protected static ConstraintFactory constraintFactory
           
protected static CostFunction costFunction
           
protected static CustomizationRequestEventDispatcher customizationRequestEventDispatcher
           
protected static DeviceProperties deviceProperties
           
protected static boolean enableCustomization
           
protected static boolean enableGeneralization
           
protected static boolean enablePerformanceMeasure
           
protected static boolean enableReferenceUi
           
protected static boolean enableRenderingConstraints
           
protected static boolean enableRenderingHints
           
protected static boolean enableShortcuts
           
protected static boolean enableWidgetWrapping
           
protected static FactoredCostCalculator factoredCostCalculator
           
protected static FactoredCostConstraintGenerator factoredCostConstraintGenerator
           
protected static FactoredCostFunction factoredCostFunction
           
protected static LearningEventDispatcher learningEventDispatcher
           
protected static float matchFunctionWeight
           
protected static FactoredCostSolver maxMarginSolver
           
protected static float navigationFunctionWeight
           
protected static java.beans.PropertyChangeSupport pcs
           
protected static FactoredCostFunction priorCostFunction
           
protected static FactoredCostFunctionState priorCostFunctionState
           
protected static ElicitationQueryEvaluator queryEvaluator
           
protected static ElicitationQueryGenerator queryGenerator
           
protected static RenderedUi referenceUi
           
protected static RenderingHistory renderingHistory
           
protected static SimilarityCostFunction similarityCostFunction
           
protected static float similarityFunctionWeight
           
protected static Solver solver
           
protected static boolean useLearnableUtilityFunction
           
protected static VetoFunction vetoFunction
           
protected static WidgetFactory widgetFactory
           
 
Method Summary
static void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
           
static boolean enableCustomization()
          Returns true if customization is enabled, false otherwise.
static boolean enableGeneralization()
          Returns true if generalization (for customization) is enabled, false otherwise.
static boolean enablePerformanceMeasure()
           
static boolean enableReferenceUi()
           
static boolean enableRenderingConstraints()
           
static boolean enableRenderingHints()
           
static boolean enableShortcuts()
          checks if the shortut rendering is enabled in this instance of supple
static boolean enableWidgetWrapping()
           
static java.awt.Dimension getAvailableScreenSize()
           
static FactoredCostSolver getBayesianSolver()
           
static ConstraintFactory getConstraintFactory()
           
static CostFunction getCostFunction()
           
static CustomizationRequestEventDispatcher getCustomizationRequestEventDispatcher()
           
static DeviceProperties getDeviceProperties()
           
static FactoredCostCalculator getFactoredCostCalculator()
           
static FactoredCostConstraintGenerator getFactoredCostConstraintGenerator()
           
static FactoredCostFunction getFactoredCostFunction()
           
static LearningEventDispatcher getLearningEventDispatcher()
           
static float getMatchFunctionWeight()
           
static FactoredCostSolver getMaxMarginSolver()
           
static float getNavigationFunctionWeight()
           
static FactoredCostFunction getPriorCostFunction()
           
static FactoredCostFunctionState getPriorCostFunctionState()
           
static ElicitationQueryEvaluator getQueryEvaluator()
           
static ElicitationQueryGenerator getQueryGenerator()
           
static RenderedUi getReferenceUi()
           
static RenderingHistory getRenderingHistory()
           
static SimilarityCostFunction getSimilarityCostFunction()
           
static float getSimilarityFunctionWeight()
           
static Solver getSolver()
           
static VetoFunction getVetoFunction()
           
static WidgetFactory getWidgetFactory()
           
static boolean isUseLearnableUtilityFunction()
           
static void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
           
static void setAvailableScreenSize(java.awt.Dimension dimension)
           
static void setCostFunction(CostFunction cf)
           
static void setDefaultDeviceProperties()
          Set device properties back to default.
static void setDeviceProperties(DeviceProperties properties)
           
static void setEnableCustomization(boolean b)
          Turn customization on or off.
static void setEnableGeneralization(boolean b)
          Turn generalization (for customization) on or off.
static void setEnablePerformanceMeasure(boolean b)
           
static void setEnableReferenceUi(boolean enableReferenceUi)
           
static void setEnableRenderingConstraints(boolean b)
           
static void setEnableRenderingHints(boolean b)
           
static void setEnableShortcuts(boolean b)
          enable or disable shortcut rendering for this instance of supple
static void setEnableWidgetWrapping(boolean enableWidgetWrapping)
           
static void setFactoredCostCalculator(FactoredCostCalculator fcc)
           
static void setFactoredCostConstraintGenerator(FactoredCostConstraintGenerator maxMarginConstraintGenerator)
           
static void setFactoredCostFunction(FactoredCostFunction fcf)
           
static void setMatchFunctionWeight(float matchFunctionWeight)
           
static void setNavigationFunctionWeight(float navigationFunctionWeight)
           
static void setPriorCostFunction(FactoredCostFunction priorCostFunction)
           
static void setQueryEvaluator(ElicitationQueryEvaluator queryEvaluator)
           
static void setQueryGenerator(ElicitationQueryGenerator queryGenerator)
           
static void setReferenceUi(RenderedUi referenceUi)
           
static void setSimilarityCostFunction(SimilarityCostFunction similarityCostFunction)
           
static void setSimilarityFunctionWeight(float similarityFunctionWeight)
           
static void setSolver(Solver solver)
           
static void setUseLearnableUtilityFunction(boolean useLearnableUtilityFunction)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

deviceProperties

protected static DeviceProperties deviceProperties

solver

protected static Solver solver

enableRenderingHints

protected static boolean enableRenderingHints

enableRenderingConstraints

protected static boolean enableRenderingConstraints

enablePerformanceMeasure

protected static boolean enablePerformanceMeasure

enableReferenceUi

protected static boolean enableReferenceUi

enableShortcuts

protected static boolean enableShortcuts

useLearnableUtilityFunction

protected static boolean useLearnableUtilityFunction

enableWidgetWrapping

protected static boolean enableWidgetWrapping

enableCustomization

protected static boolean enableCustomization

enableGeneralization

protected static boolean enableGeneralization

customizationRequestEventDispatcher

protected static CustomizationRequestEventDispatcher customizationRequestEventDispatcher

learningEventDispatcher

protected static LearningEventDispatcher learningEventDispatcher

widgetFactory

protected static WidgetFactory widgetFactory

constraintFactory

protected static ConstraintFactory constraintFactory

costFunction

protected static CostFunction costFunction

similarityCostFunction

protected static SimilarityCostFunction similarityCostFunction

factoredCostFunction

protected static FactoredCostFunction factoredCostFunction

priorCostFunction

protected static FactoredCostFunction priorCostFunction

priorCostFunctionState

protected static FactoredCostFunctionState priorCostFunctionState

factoredCostCalculator

protected static FactoredCostCalculator factoredCostCalculator

factoredCostConstraintGenerator

protected static FactoredCostConstraintGenerator factoredCostConstraintGenerator

vetoFunction

protected static VetoFunction vetoFunction

availableScreenSize

protected static java.awt.Dimension availableScreenSize

referenceUi

protected static RenderedUi referenceUi

renderingHistory

protected static RenderingHistory renderingHistory

maxMarginSolver

protected static FactoredCostSolver maxMarginSolver

bayesianSolver

protected static FactoredCostSolver bayesianSolver

queryGenerator

protected static ElicitationQueryGenerator queryGenerator

queryEvaluator

protected static ElicitationQueryEvaluator queryEvaluator

navigationFunctionWeight

protected static float navigationFunctionWeight

matchFunctionWeight

protected static float matchFunctionWeight

similarityFunctionWeight

protected static float similarityFunctionWeight

pcs

protected static java.beans.PropertyChangeSupport pcs
Method Detail

getSolver

public static Solver getSolver()
Returns:

getDeviceProperties

public static DeviceProperties getDeviceProperties()
Returns:

setDeviceProperties

public static void setDeviceProperties(DeviceProperties properties)
Parameters:
properties -

setDefaultDeviceProperties

public static void setDefaultDeviceProperties()
Set device properties back to default.


getWidgetFactory

public static WidgetFactory getWidgetFactory()

getConstraintFactory

public static ConstraintFactory getConstraintFactory()

getCostFunction

public static CostFunction getCostFunction()

getFactoredCostFunction

public static FactoredCostFunction getFactoredCostFunction()

setFactoredCostFunction

public static void setFactoredCostFunction(FactoredCostFunction fcf)

getPriorCostFunction

public static FactoredCostFunction getPriorCostFunction()

getPriorCostFunctionState

public static FactoredCostFunctionState getPriorCostFunctionState()

setPriorCostFunction

public static void setPriorCostFunction(FactoredCostFunction priorCostFunction)

getFactoredCostCalculator

public static FactoredCostCalculator getFactoredCostCalculator()

setFactoredCostCalculator

public static void setFactoredCostCalculator(FactoredCostCalculator fcc)

getFactoredCostConstraintGenerator

public static FactoredCostConstraintGenerator getFactoredCostConstraintGenerator()
Returns:
Returns the maxMarginConstraintGenerator.

setFactoredCostConstraintGenerator

public static void setFactoredCostConstraintGenerator(FactoredCostConstraintGenerator maxMarginConstraintGenerator)
Parameters:
maxMarginConstraintGenerator - The maxMarginConstraintGenerator to set.

getVetoFunction

public static VetoFunction getVetoFunction()

setCostFunction

public static void setCostFunction(CostFunction cf)

getSimilarityCostFunction

public static SimilarityCostFunction getSimilarityCostFunction()

setSimilarityCostFunction

public static void setSimilarityCostFunction(SimilarityCostFunction similarityCostFunction)

getNavigationFunctionWeight

public static float getNavigationFunctionWeight()
Returns:
Returns the navigationFunctionWeight.

setNavigationFunctionWeight

public static void setNavigationFunctionWeight(float navigationFunctionWeight)
Parameters:
navigationFunctionWeight - The navigationFunctionWeight to set.

getMatchFunctionWeight

public static float getMatchFunctionWeight()
Returns:
Returns the matchFunctionWeight.

setMatchFunctionWeight

public static void setMatchFunctionWeight(float matchFunctionWeight)
Parameters:
matchFunctionWeight - The matchFunctionWeight to set.

getSimilarityFunctionWeight

public static float getSimilarityFunctionWeight()
Returns:
Returns the similarityFunctionWeight.

setSimilarityFunctionWeight

public static void setSimilarityFunctionWeight(float similarityFunctionWeight)
Parameters:
similarityFunctionWeight - The similarityFunctionWeight to set.

getReferenceUi

public static RenderedUi getReferenceUi()
Returns:
Returns the referenceUi.

setReferenceUi

public static void setReferenceUi(RenderedUi referenceUi)
Parameters:
referenceUi - The referenceUi to set.

enableReferenceUi

public static boolean enableReferenceUi()
Returns:
true if we are supposed to render similarly to the reference UI

setEnableReferenceUi

public static void setEnableReferenceUi(boolean enableReferenceUi)
Parameters:
enableReferenceUi - The enableReferenceUi to set.

setSolver

public static void setSolver(Solver solver)
Parameters:
solver -

enableRenderingHints

public static boolean enableRenderingHints()
Returns:

setEnableRenderingHints

public static void setEnableRenderingHints(boolean b)
Parameters:
b -

enableRenderingConstraints

public static boolean enableRenderingConstraints()
Returns:

setEnableRenderingConstraints

public static void setEnableRenderingConstraints(boolean b)
Parameters:
b -

enablePerformanceMeasure

public static boolean enablePerformanceMeasure()
Returns:

setEnablePerformanceMeasure

public static void setEnablePerformanceMeasure(boolean b)
Parameters:
b -

enableShortcuts

public static boolean enableShortcuts()
checks if the shortut rendering is enabled in this instance of supple

Returns:
true if shortcuts are enabled; false otherwise

setEnableShortcuts

public static void setEnableShortcuts(boolean b)
enable or disable shortcut rendering for this instance of supple

Parameters:
b -

getAvailableScreenSize

public static java.awt.Dimension getAvailableScreenSize()
Returns:

setAvailableScreenSize

public static void setAvailableScreenSize(java.awt.Dimension dimension)
Parameters:
dimension -

isUseLearnableUtilityFunction

public static boolean isUseLearnableUtilityFunction()
Returns:
Returns the useLearnableUtilityFunction.

setUseLearnableUtilityFunction

public static void setUseLearnableUtilityFunction(boolean useLearnableUtilityFunction)
Parameters:
useLearnableUtilityFunction - The useLearnableUtilityFunction to set.

addPropertyChangeListener

public static void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)

removePropertyChangeListener

public static void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)

enableWidgetWrapping

public static boolean enableWidgetWrapping()
Returns:
Returns the enableWidgetWrapping.

setEnableWidgetWrapping

public static void setEnableWidgetWrapping(boolean enableWidgetWrapping)
Parameters:
enableWidgetWrapping - The enableWidgetWrapping to set.

enableCustomization

public static boolean enableCustomization()
Returns true if customization is enabled, false otherwise.


setEnableCustomization

public static void setEnableCustomization(boolean b)
Turn customization on or off.

Parameters:
b -

enableGeneralization

public static boolean enableGeneralization()
Returns true if generalization (for customization) is enabled, false otherwise.


setEnableGeneralization

public static void setEnableGeneralization(boolean b)
Turn generalization (for customization) on or off.

Parameters:
b -

getCustomizationRequestEventDispatcher

public static CustomizationRequestEventDispatcher getCustomizationRequestEventDispatcher()
Returns:
Returns the customizationRequestEventDispatcher.

getLearningEventDispatcher

public static LearningEventDispatcher getLearningEventDispatcher()

getRenderingHistory

public static RenderingHistory getRenderingHistory()

getMaxMarginSolver

public static FactoredCostSolver getMaxMarginSolver()
Returns:
Returns the maxMarginSolver.

getBayesianSolver

public static FactoredCostSolver getBayesianSolver()
Returns:
Returns the Bayesian Solver.

getQueryGenerator

public static ElicitationQueryGenerator getQueryGenerator()
Returns:
Returns the queryGenerator.

setQueryGenerator

public static void setQueryGenerator(ElicitationQueryGenerator queryGenerator)

getQueryEvaluator

public static ElicitationQueryEvaluator getQueryEvaluator()

setQueryEvaluator

public static void setQueryEvaluator(ElicitationQueryEvaluator queryEvaluator)