edu.washington.cs.supple.render
Interface SimilarityCostFunction

All Known Implementing Classes:
DefaultSimilarityCostFunction

public interface SimilarityCostFunction

Author:
kgajos To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Method Summary
 float getSimilarityCost(RenderedUi ui, Widget widget)
          Gives the cost for a widget based on the similarity to a reference rendering.
 float getSimilarityCost(RenderedUi ui, WidgetProperties properties)
           
 void setBasicWidgetWeight(float orientationWeight, float dataLayoutWeight, float domainRangeWeight, float dataTypeWeight, float sizeFlexibilityWeight)
          Manually set or reset the basic widget property weights after initialization of object
 void setContainerWidgetWeight(float orientationWeight, float relativeAlignmentWeight, float visualContextChangeWeight)
          Manually set or reset the container widget property weights after initialization of object
 

Method Detail

getSimilarityCost

public float getSimilarityCost(RenderedUi ui,
                               WidgetProperties properties)

getSimilarityCost

public float getSimilarityCost(RenderedUi ui,
                               Widget widget)
Gives the cost for a widget based on the similarity to a reference rendering. If the reference rendering is null or inappropriate (for different UI), this method returns 0.

Parameters:
ui - reference rendering
widget - the widget to be evaluated
Returns:
the cost for the widget based on its similarity to the reference rendering

setBasicWidgetWeight

public void setBasicWidgetWeight(float orientationWeight,
                                 float dataLayoutWeight,
                                 float domainRangeWeight,
                                 float dataTypeWeight,
                                 float sizeFlexibilityWeight)
Manually set or reset the basic widget property weights after initialization of object

Parameters:
orientationWeight -
dataLayoutWeight -
domainRangeWeight -
dataTypeWeight -
sizeFlexibilityWeight -

setContainerWidgetWeight

public void setContainerWidgetWeight(float orientationWeight,
                                     float relativeAlignmentWeight,
                                     float visualContextChangeWeight)
Manually set or reset the container widget property weights after initialization of object

Parameters:
orientationWeight -
relativeAlignmentWeight -
visualContextChangeWeight -