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.

Field Summary
static boolean DEBUG
           
private  int nbPossibilities
           
private  double[][] values
           
private static double VALUES_ZERO_THRESHOLD
           
 
Constructor Summary
HierarchicalAgregator(int nbpossib)
           
 
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
 

Field Detail

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
Constructor Detail

HierarchicalAgregator

public HierarchicalAgregator(int nbpossib)
Method Detail

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 have
hierarchylevel - : depends on the criteria order. For instance : 0 = information, 1 = external reward, 2 = rehearsal
Returns:
int : the index of the anticipated situation found