MACS
Class HierarchicalAgregator
java.lang.Object
|
+--MACS.HierarchicalAgregator
- final class HierarchicalAgregator
- extends java.lang.Object
The HierarchicalAgregator class is in charge of choosing the next action
depending on several models of payoff.
- Author:
- Olivier Sigaud and Pierre Gérard.
Method Summary |
double |
getValue(int hierarchyLevel,
int index)
|
int |
pickPossibWithValue(double value,
int hierarchylevel)
This methods finds the number of an anticipated situation that has the required value
according to the selection mode |
void |
setValue(int hierarchyLevel,
int index,
double value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
public static boolean DEBUG
VALUES_ZERO_THRESHOLD
private static final double VALUES_ZERO_THRESHOLD
- See Also:
- Constant Field Values
nbPossibilities
private int nbPossibilities
values
private double[][] values
HierarchicalAgregator
public HierarchicalAgregator(int nbpossib)
getValue
public double getValue(int hierarchyLevel,
int index)
- Parameters:
index
- hierarchyLevel
-
- Returns:
- double
setValue
public void setValue(int hierarchyLevel,
int index,
double value)
pickPossibWithValue
public int pickPossibWithValue(double value,
int hierarchylevel)
- This methods finds the number of an anticipated situation that has the required value
according to the selection mode
- Parameters:
value
- : the value that the anticipated situation must havehierarchylevel
- : depends on the criteria order.
For instance : 0 = information, 1 = external reward, 2 = rehearsal
- Returns:
- int : the index of the anticipated situation found