|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.washington.cs.supple.render.AbstractCostFunction
| Field Summary | |
protected TreeFrequencyCount |
frequencyCount
|
protected UiObject |
lastRoot
|
protected NavigationCostFunction |
navCost
|
protected ShortcutCostFunction |
shortcutCost
|
protected SimilarityCostFunction |
similarityCost
|
protected Trace |
trace
|
protected TransitionCount |
transitionCountFunction
|
| Constructor Summary | |
AbstractCostFunction(Trace t)
|
|
| Method Summary | |
protected void |
ensureNavCostFunction(Widget w)
|
protected void |
ensureShortcutCostFunction()
|
protected void |
ensureSimilarityCostFunction()
|
float |
getAssignmentCost(Widget widget)
|
float |
getHintCost(RenderingHint hint,
float fit)
Used by RenderingHintEnforcer to convert widget's fit returned by a rendering hint to actual cost |
protected abstract float |
getMatchCost(Widget widget)
|
protected abstract NavigationCostFunction |
getNewNavigationCostFunction(Trace t,
UiObject root)
|
float |
getShortcutCost(Shortcut shortcut)
The signature for this method will probably change at some point; it computes the cost associated with a particular shortcut. |
ShortcutCostFunction |
getShortcutCostFunction()
returns the currently used shortcut cost function |
protected SimilarityCostFunction |
getSimilarityCostFunction()
|
TransitionCount |
getTransitionCountFunction()
A transition count provides information on the usage of the container elements of a UI |
protected boolean |
hasPrimitiveChild(ContainerType type)
|
boolean |
isAcceptable(Widget widget)
provides yes/no information as to whether a widget is acceptable in a particular situation |
void |
setShortcutCostFunction(ShortcutCostFunction function)
Sets the shortcut cost function to be used |
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 |
protected Trace trace
protected NavigationCostFunction navCost
protected SimilarityCostFunction similarityCost
protected ShortcutCostFunction shortcutCost
protected TreeFrequencyCount frequencyCount
protected TransitionCount transitionCountFunction
protected UiObject lastRoot
| Constructor Detail |
public AbstractCostFunction(Trace t)
| Method Detail |
protected abstract float getMatchCost(Widget widget)
protected abstract NavigationCostFunction getNewNavigationCostFunction(Trace t,
UiObject root)
protected SimilarityCostFunction getSimilarityCostFunction()
protected void ensureNavCostFunction(Widget w)
protected void ensureSimilarityCostFunction()
protected void ensureShortcutCostFunction()
public float getAssignmentCost(Widget widget)
getAssignmentCost in interface CostFunctionwidget - widget whose cost is to be analysed
public float getHintCost(RenderingHint hint,
float fit)
CostFunction
getHintCost in interface CostFunctionfit - the fit (between 0.0 and 1.0
public float getShortcutCost(Shortcut shortcut)
CostFunction
getShortcutCost in interface CostFunctionshortcut - shortcut to be evaluated
public ShortcutCostFunction getShortcutCostFunction()
public void setShortcutCostFunction(ShortcutCostFunction function)
function - a shortcut cost functionpublic TransitionCount getTransitionCountFunction()
CostFunction
getTransitionCountFunction in interface CostFunctionpublic void setTransitionCountFunction(TransitionCount tc)
CostFunction
setTransitionCountFunction in interface CostFunctiontc - a transition count functionpublic boolean isAcceptable(Widget widget)
VetoFunction
isAcceptable in interface VetoFunctionwidget - a widget to be tested
protected boolean hasPrimitiveChild(ContainerType type)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||