edu.washington.cs.supple.render
Class InstanceDeviceProperties

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

public class InstanceDeviceProperties
extends java.lang.Object

Author:
kierah

Field Summary
protected  java.awt.Dimension availableScreenSize
           
protected  ConstraintFactory constraintFactory
           
protected  CostFunction costFunction
           
protected  CustomizationRequestEventDispatcher customizationRequestEventDispatcher
           
protected  DeviceProperties deviceProperties
           
protected  boolean enableCustomization
           
protected  boolean enableGeneralization
           
protected  boolean enablePerformanceMeasure
           
protected  boolean enableReferenceUi
           
protected  boolean enableRenderingConstraints
           
protected  boolean enableRenderingHints
           
protected  boolean enableShortcuts
           
protected  boolean enableWidgetWrapping
           
protected  FactoredCostCalculator factoredCostCalculator
           
protected  FactoredCostFunction factoredCostFunction
           
protected  float matchFunctionWeight
           
protected  FactoredCostConstraintGenerator maxMarginConstraintGenerator
           
protected  float navigationFunctionWeight
           
protected  java.beans.PropertyChangeSupport pcs
           
protected  RenderedUi referenceUi
           
protected  SimilarityCostFunction similarityCostFunction
           
protected  float similarityFunctionWeight
           
protected  Solver solver
           
protected  boolean useLearnableUtilityFunction
           
protected  VetoFunction vetoFunction
           
protected  WidgetFactory widgetFactory
           
 
Constructor Summary
InstanceDeviceProperties()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
           
 boolean enableCustomization()
          Returns true if customization is enabled, false otherwise.
 boolean enableGeneralization()
          Returns true if generalization (for customization) is enabled, false otherwise.
 boolean enablePerformanceMeasure()
           
 boolean enableReferenceUi()
           
 boolean enableRenderingConstraints()
           
 boolean enableRenderingHints()
           
 boolean enableShortcuts()
          checks if the shortut rendering is enabled in this instance of supple
 boolean enableWidgetWrapping()
           
 java.awt.Dimension getAvailableScreenSize()
           
 ConstraintFactory getConstraintFactory()
           
 CostFunction getCostFunction()
           
 CustomizationRequestEventDispatcher getCustomizationRequestEventDispatcher()
           
 DeviceProperties getDeviceProperties()
           
 FactoredCostCalculator getFactoredCostCalculator()
           
 FactoredCostFunction getFactoredCostFunction()
           
 float getMatchFunctionWeight()
           
 FactoredCostConstraintGenerator getMaxMarginConstraintGenerator()
           
 float getNavigationFunctionWeight()
           
 RenderedUi getReferenceUi()
           
 Renderer getRenderer()
           
 SimilarityCostFunction getSimilarityCostFunction()
           
 float getSimilarityFunctionWeight()
           
 Solver getSolver()
           
 VetoFunction getVetoFunction()
           
 WidgetFactory getWidgetFactory()
           
 boolean isUseLearnableUtilityFunction()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
           
 void setAvailableScreenSize(java.awt.Dimension dimension)
           
 void setCostFunction(CostFunction cf)
           
 void setDefaultDeviceProperties()
          Set device properties back to default.
 void setDeviceProperties(DeviceProperties properties)
           
 void setEnableCustomization(boolean b)
          Turn customization on or off.
 void setEnableGeneralization(boolean b)
          Turn generalization (for customization) on or off.
 void setEnablePerformanceMeasure(boolean b)
           
 void setEnableReferenceUi(boolean enableReferenceUi)
           
 void setEnableRenderingConstraints(boolean b)
           
 void setEnableRenderingHints(boolean b)
           
 void setEnableShortcuts(boolean b)
          enable or disable shortcut rendering for this instance of supple
 void setEnableWidgetWrapping(boolean enableWidgetWrapping)
           
 void setFactoredCostCalculator(FactoredCostCalculator fcc)
           
 void setFactoredCostFunction(FactoredCostFunction fcf)
           
 void setMatchFunctionWeight(float matchFunctionWeight)
           
 void setMaxMarginConstraintGenerator(FactoredCostConstraintGenerator maxMarginConstraintGenerator)
           
 void setNavigationFunctionWeight(float navigationFunctionWeight)
           
 void setReferenceUi(RenderedUi referenceUi)
           
 void setSimilarityCostFunction(SimilarityCostFunction similarityCostFunction)
           
 void setSimilarityFunctionWeight(float similarityFunctionWeight)
           
 void setSolver(AbstractSolver solver)
           
 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 DeviceProperties deviceProperties

solver

protected Solver solver

enableRenderingHints

protected boolean enableRenderingHints

enableRenderingConstraints

protected boolean enableRenderingConstraints

enablePerformanceMeasure

protected boolean enablePerformanceMeasure

enableReferenceUi

protected boolean enableReferenceUi

enableShortcuts

protected boolean enableShortcuts

useLearnableUtilityFunction

protected boolean useLearnableUtilityFunction

enableWidgetWrapping

protected boolean enableWidgetWrapping

enableCustomization

protected boolean enableCustomization

enableGeneralization

protected boolean enableGeneralization

customizationRequestEventDispatcher

protected CustomizationRequestEventDispatcher customizationRequestEventDispatcher

widgetFactory

protected WidgetFactory widgetFactory

constraintFactory

protected ConstraintFactory constraintFactory

costFunction

protected CostFunction costFunction

similarityCostFunction

protected SimilarityCostFunction similarityCostFunction

factoredCostFunction

protected FactoredCostFunction factoredCostFunction

factoredCostCalculator

protected FactoredCostCalculator factoredCostCalculator

maxMarginConstraintGenerator

protected FactoredCostConstraintGenerator maxMarginConstraintGenerator

vetoFunction

protected VetoFunction vetoFunction

availableScreenSize

protected java.awt.Dimension availableScreenSize

referenceUi

protected RenderedUi referenceUi

navigationFunctionWeight

protected float navigationFunctionWeight

matchFunctionWeight

protected float matchFunctionWeight

similarityFunctionWeight

protected float similarityFunctionWeight

pcs

protected java.beans.PropertyChangeSupport pcs
Constructor Detail

InstanceDeviceProperties

public InstanceDeviceProperties()
Method Detail

getSolver

public Solver getSolver()

getRenderer

public Renderer getRenderer()

getDeviceProperties

public DeviceProperties getDeviceProperties()

setDeviceProperties

public void setDeviceProperties(DeviceProperties properties)
Parameters:
properties -

setDefaultDeviceProperties

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


getWidgetFactory

public WidgetFactory getWidgetFactory()

getConstraintFactory

public ConstraintFactory getConstraintFactory()

getCostFunction

public CostFunction getCostFunction()

getFactoredCostFunction

public FactoredCostFunction getFactoredCostFunction()

setFactoredCostFunction

public void setFactoredCostFunction(FactoredCostFunction fcf)

getFactoredCostCalculator

public FactoredCostCalculator getFactoredCostCalculator()

setFactoredCostCalculator

public void setFactoredCostCalculator(FactoredCostCalculator fcc)

getMaxMarginConstraintGenerator

public FactoredCostConstraintGenerator getMaxMarginConstraintGenerator()
Returns:
Returns the maxMarginConstraintGenerator.

setMaxMarginConstraintGenerator

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

getVetoFunction

public VetoFunction getVetoFunction()

setCostFunction

public void setCostFunction(CostFunction cf)

getSimilarityCostFunction

public SimilarityCostFunction getSimilarityCostFunction()

setSimilarityCostFunction

public void setSimilarityCostFunction(SimilarityCostFunction similarityCostFunction)

getNavigationFunctionWeight

public float getNavigationFunctionWeight()
Returns:
Returns the navigationFunctionWeight.

setNavigationFunctionWeight

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

getMatchFunctionWeight

public float getMatchFunctionWeight()
Returns:
Returns the matchFunctionWeight.

setMatchFunctionWeight

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

getSimilarityFunctionWeight

public float getSimilarityFunctionWeight()
Returns:
Returns the similarityFunctionWeight.

setSimilarityFunctionWeight

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

getReferenceUi

public RenderedUi getReferenceUi()
Returns:
Returns the referenceUi.

setReferenceUi

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

enableReferenceUi

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

setEnableReferenceUi

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

setSolver

public void setSolver(AbstractSolver solver)
Parameters:
solver -

enableRenderingHints

public boolean enableRenderingHints()
Returns:

setEnableRenderingHints

public void setEnableRenderingHints(boolean b)
Parameters:
b -

enableRenderingConstraints

public boolean enableRenderingConstraints()
Returns:

setEnableRenderingConstraints

public void setEnableRenderingConstraints(boolean b)
Parameters:
b -

enablePerformanceMeasure

public boolean enablePerformanceMeasure()
Returns:

setEnablePerformanceMeasure

public void setEnablePerformanceMeasure(boolean b)
Parameters:
b -

enableShortcuts

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

Returns:
true if shortcuts are enabled; false otherwise

setEnableShortcuts

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

Parameters:
b -

getAvailableScreenSize

public java.awt.Dimension getAvailableScreenSize()
Returns:

setAvailableScreenSize

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

isUseLearnableUtilityFunction

public boolean isUseLearnableUtilityFunction()
Returns:
Returns the useLearnableUtilityFunction.

setUseLearnableUtilityFunction

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

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)

enableWidgetWrapping

public boolean enableWidgetWrapping()
Returns:
Returns the enableWidgetWrapping.

setEnableWidgetWrapping

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

enableCustomization

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


setEnableCustomization

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

Parameters:
b -

enableGeneralization

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


setEnableGeneralization

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

Parameters:
b -

getCustomizationRequestEventDispatcher

public CustomizationRequestEventDispatcher getCustomizationRequestEventDispatcher()
Returns:
Returns the customizationRequestEventDispatcher.