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

java.lang.Object
  extended byedu.washington.cs.supple.render.AbstractCostFunction
      extended byedu.washington.cs.supple.wlib.java2.DesktopCostFunction
All Implemented Interfaces:
CostFunction, VetoFunction
Direct Known Subclasses:
DesktopAlignedCostFunction

public class DesktopCostFunction
extends AbstractCostFunction

Author:
kgajos

Field Summary
 
Fields inherited from class edu.washington.cs.supple.render.AbstractCostFunction
frequencyCount, lastRoot, navCost, shortcutCost, similarityCost, trace, transitionCountFunction
 
Constructor Summary
DesktopCostFunction(Trace t)
           
 
Method Summary
 float getMatchCost(Widget widget)
           
protected  NavigationCostFunction getNewNavigationCostFunction(Trace t, UiObject root)
           
 
Methods inherited from class edu.washington.cs.supple.render.AbstractCostFunction
ensureNavCostFunction, ensureShortcutCostFunction, ensureSimilarityCostFunction, getAssignmentCost, getHintCost, getShortcutCost, getShortcutCostFunction, getSimilarityCostFunction, getTransitionCountFunction, hasPrimitiveChild, isAcceptable, setShortcutCostFunction, setTransitionCountFunction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DesktopCostFunction

public DesktopCostFunction(Trace t)
Method Detail

getMatchCost

public float getMatchCost(Widget widget)
Specified by:
getMatchCost in class AbstractCostFunction

getNewNavigationCostFunction

protected NavigationCostFunction getNewNavigationCostFunction(Trace t,
                                                              UiObject root)
Specified by:
getNewNavigationCostFunction in class AbstractCostFunction