MACS
Class Anticipator

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.TreeMap
              |
              +--MACS.Anticipator
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable, java.util.SortedMap

final class Anticipator
extends java.util.TreeMap

The AnticipatedSituationMap class is used to store temporarily the list of anticipated situations computed from each perception through the model of transitions.

Author:
Olivier Sigaud and Pierre Gérard.

Field Summary
static boolean DEBUG
           
protected  MACS.ClassifierSystem modelOfTransitions
           
 
Fields inherited from class java.util.TreeMap
 
Fields inherited from class java.util.AbstractMap
 
Constructor Summary
protected Anticipator(MACS.ClassifierSystem modTrans)
           
 
Method Summary
 void buildPossibilityTables(Classifier.Perception currentPerception)
           
 java.util.Vector[] getPossibilityTables(Classifier.Perception currentPerception)
          This methods computes for each possible action the list of anticipated situations and the associated information gains, and it fills tables with it: - retour[0] = actions (contains the list of possible actions) - retour[1] = anticipationSet (contains the list of anticipations from classifiers) - retour[2] = infoGains (contains the list of infogains corresponding to each classifier) If the value has already been computed, it does not compute it again.
private  java.util.Vector[] getTables(Classifier.Perception currentPerception)
           
 
Methods inherited from class java.util.TreeMap
clear, clone, comparator, containsKey, containsValue, entrySet, firstKey, get, headMap, keySet, lastKey, put, putAll, remove, size, subMap, tailMap, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode, isEmpty
 

Field Detail

DEBUG

public static boolean DEBUG

modelOfTransitions

protected MACS.ClassifierSystem modelOfTransitions
Constructor Detail

Anticipator

protected Anticipator(MACS.ClassifierSystem modTrans)
Parameters:
modTrans -
Method Detail

getPossibilityTables

public java.util.Vector[] getPossibilityTables(Classifier.Perception currentPerception)
This methods computes for each possible action the list of anticipated situations and the associated information gains, and it fills tables with it: - retour[0] = actions (contains the list of possible actions) - retour[1] = anticipationSet (contains the list of anticipations from classifiers) - retour[2] = infoGains (contains the list of infogains corresponding to each classifier) If the value has already been computed, it does not compute it again.

Parameters:
currentPerception -
Returns:
java.util.Vector[]

buildPossibilityTables

public void buildPossibilityTables(Classifier.Perception currentPerception)

getTables

private java.util.Vector[] getTables(Classifier.Perception currentPerception)