|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.washington.cs.supple.render.utility.RegretCalculator
| Field Summary | |
static int |
GAP
|
static int |
MINIMAX
|
static int |
OPTIMISTIC
|
static int |
PESIMISTIC
|
| Constructor Summary | |
RegretCalculator()
|
|
| Method Summary | |
double |
calculateCost(int strategy,
Solution solution,
FactoredCostFunction costFunction)
Calculates the cost of an entire solution |
float |
calculateCost(int strategy,
Widget reference,
java.util.Collection feasibleWidgets,
java.util.Collection factors)
Computes maximum regret for a reference widget and a domain of feasible widgets |
protected float |
calculateFactorContribution(int strategy,
Factor factor,
java.util.Collection widgetBags)
Calculates contribution of a particular factor to the overall cost |
float |
calculateFactorContribution(int strategy,
Factor factor,
WidgetBag curBag)
Calculates contributions of individual factors to the overall cost given a particular widget bag |
FactorStatistics |
calculateFactorStatistics(int strategy,
java.util.Collection factors,
java.util.Collection widgetBags)
Calculates contributions of individual factors to the overall cost |
protected float |
calculateMaxRegret(Widget reference,
java.util.Collection feasibleWidgets,
java.util.Collection factors)
Computes maximum regret for a reference widget and a domain of feasible widgets |
protected float |
calculateOPCost(int strategy,
Widget widget,
java.util.Collection factors)
Calculates optimistic or pesimistic cost for a widget |
protected float |
calculateRegret(Widget reference,
Widget otherWidget,
java.util.Collection factors)
Computes regret for a specific pair of widgets given a set of relevant factors |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int MINIMAX
public static final int OPTIMISTIC
public static final int PESIMISTIC
public static final int GAP
| Constructor Detail |
public RegretCalculator()
| Method Detail |
protected float calculateRegret(Widget reference,
Widget otherWidget,
java.util.Collection factors)
reference - the reference widgetotherWidget - an alternative widgetfactors - a collection of factors from the utility function
protected float calculateMaxRegret(Widget reference,
java.util.Collection feasibleWidgets,
java.util.Collection factors)
reference - reference widgetfeasibleWidgets - all feasible widgetsfactors - a collection of factors
protected float calculateOPCost(int strategy,
Widget widget,
java.util.Collection factors)
strategy - a strategy (has to be either Optimistic or Pesimistifc)widget - widget for which we are calculating costfactors - factors to be involved in the computation
public float calculateCost(int strategy,
Widget reference,
java.util.Collection feasibleWidgets,
java.util.Collection factors)
calculateCost in interface FactoredCostCalculatorstrategy - a strategy for calculating cost (minimax regret, optimistic,
pesimistic)reference - reference widgetfeasibleWidgets - all feasible widgetsfactors - a collection of factors
protected float calculateFactorContribution(int strategy,
Factor factor,
java.util.Collection widgetBags)
strategy - strategy to be usedfactor - factor to be analyzedwidgetBags - widget bags from a solution (they must be set)
public FactorStatistics calculateFactorStatistics(int strategy,
java.util.Collection factors,
java.util.Collection widgetBags)
strategy - strategy to be usedfactors - factors to be analyzedwidgetBags - widget bags from a solution (they must be set)
public float calculateFactorContribution(int strategy,
Factor factor,
WidgetBag curBag)
strategy - strategy to be usedfactor - factor to be analyzed
public double calculateCost(int strategy,
Solution solution,
FactoredCostFunction costFunction)
FactoredCostCalculator
calculateCost in interface FactoredCostCalculatorstrategy - an optional argument if more than one variant of a method is
possiblesolution - a solution to be evaluatedcostFunction - the cost function to be used
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||