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

java.lang.Object
  extended byedu.washington.cs.supple.wlib.java2.PointerNavigationCostFunction
All Implemented Interfaces:
NavigationCostFunction

public class PointerNavigationCostFunction
extends java.lang.Object
implements NavigationCostFunction

Author:
kgajos

Field Summary
protected  TransitionCount transitionCount
           
 
Constructor Summary
PointerNavigationCostFunction(Trace trace, UiObject object)
           
PointerNavigationCostFunction(TransitionCount tc)
           
 
Method Summary
 float getNavigationCost(Widget w)
          Calculates navigation cost incurred by the widget
 TransitionCount getTransitionCountFunction()
          A transition count provides information on the usage of the container elements of a UI
 void setTransitionCountFunction(TransitionCount tc)
          A transition count provides information on the usage of the container elements of a UI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transitionCount

protected TransitionCount transitionCount
Constructor Detail

PointerNavigationCostFunction

public PointerNavigationCostFunction(TransitionCount tc)

PointerNavigationCostFunction

public PointerNavigationCostFunction(Trace trace,
                                     UiObject object)
Method Detail

getNavigationCost

public float getNavigationCost(Widget w)
Calculates navigation cost incurred by the widget

Specified by:
getNavigationCost in interface NavigationCostFunction
Parameters:
w - widget
Returns:
navigation cost

getTransitionCountFunction

public TransitionCount getTransitionCountFunction()
Description copied from interface: NavigationCostFunction
A transition count provides information on the usage of the container elements of a UI

Specified by:
getTransitionCountFunction in interface NavigationCostFunction
Returns:
tc a transition count function

setTransitionCountFunction

public void setTransitionCountFunction(TransitionCount tc)
Description copied from interface: NavigationCostFunction
A transition count provides information on the usage of the container elements of a UI

Specified by:
setTransitionCountFunction in interface NavigationCostFunction
Parameters:
tc - a transition count function