edu.washington.cs.supple.render
Class InstanceDeviceProperties
java.lang.Object
edu.washington.cs.supple.render.InstanceDeviceProperties
- public class InstanceDeviceProperties
- extends java.lang.Object
- Author:
- kierah
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
InstanceDeviceProperties
public InstanceDeviceProperties()
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.