|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.washington.cs.supple.render.AbstractFactoredCostFunction
| Field Summary | |
protected java.util.ArrayList |
factors
|
protected java.util.Hashtable |
lookup
|
protected Trace |
trace
|
| Constructor Summary | |
AbstractFactoredCostFunction(Trace trace)
|
|
| Method Summary | |
java.lang.Object |
clone()
|
Factor |
getFactorByName(java.lang.String name)
Lets you retrieve a factor by its name |
java.util.Collection |
getFactors()
Returns all factors |
java.util.Collection |
getFactors(java.util.Collection widgets)
Returns relevant factors |
java.util.Collection |
getFactors(SuppleType type,
UiObject uiObject,
java.util.Collection descriptors)
Returns relevant factors |
java.util.Collection |
getFactors(SuppleType type,
UiObject uiObject,
WidgetDescriptor descriptor)
Returns relevant factors |
java.util.Collection |
getFactors(Widget widget)
Returns relevant factors |
protected abstract void |
init()
Initializes the cost function (to be overriden by children) |
java.lang.String |
prettyPrint()
|
void |
setState(FactoredCostFunctionState state)
|
protected void |
updateLookupTable()
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.ArrayList factors
protected java.util.Hashtable lookup
protected Trace trace
| Constructor Detail |
public AbstractFactoredCostFunction(Trace trace)
| Method Detail |
protected abstract void init()
public java.util.Collection getFactors()
FactoredCostFunction
getFactors in interface FactoredCostFunctionpublic java.util.Collection getFactors(java.util.Collection widgets)
FactoredCostFunction
getFactors in interface FactoredCostFunctionwidgets - a collection of widgets for which we want to find factors
public java.util.Collection getFactors(SuppleType type,
UiObject uiObject,
java.util.Collection descriptors)
FactoredCostFunction
getFactors in interface FactoredCostFunctiontype - uiObject - descriptors - a collection of widget descriptors for which we want to find
factors (all descriptors are for widgets for the same ui
object)
public java.util.Collection getFactors(Widget widget)
FactoredCostFunction
getFactors in interface FactoredCostFunctionwidget - a widget for which we want to find factors
public java.util.Collection getFactors(SuppleType type,
UiObject uiObject,
WidgetDescriptor descriptor)
FactoredCostFunction
getFactors in interface FactoredCostFunctiontype - uiObject - descriptor - descriptor of a widget for which we want to find factors
public Factor getFactorByName(java.lang.String name)
FactoredCostFunction
getFactorByName in interface FactoredCostFunctionname - factor's name
public void setState(FactoredCostFunctionState state)
setState in interface FactoredCostFunctionprotected void updateLookupTable()
public java.lang.Object clone()
clone in interface FactoredCostFunctionpublic java.lang.String prettyPrint()
prettyPrint in interface FactoredCostFunction
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||