MACS
Class ExploMemory

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

final class ExploMemory
extends java.util.TreeMap

The ExploMemory class implements a memory of all actions performed in all known situation. It is organized as a Map whose key is a Perception and whose value is an ActionTable.

Author:
Olivier Sigaud and Pierre Gérard.

Field Summary
static boolean traceFlag
           
 
Fields inherited from class java.util.TreeMap
 
Fields inherited from class java.util.AbstractMap
 
Constructor Summary
ExploMemory()
           
 
Method Summary
 void add(Classifier.Perception p, int nbActions)
           
 void addAction(Classifier.Perception p, Classifier.Action ac)
           
 MACS.ActionTable getActionTable(Classifier.Perception p)
           
 int getBooleanImmediateValue(Classifier.Perception p)
           
 int getPreciseImmediateValue(Classifier.Perception p)
           
 
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

traceFlag

public static boolean traceFlag
Constructor Detail

ExploMemory

public ExploMemory()
Method Detail

getActionTable

public MACS.ActionTable getActionTable(Classifier.Perception p)
Parameters:
p -
Returns:
MACS.ActionTable

add

public void add(Classifier.Perception p,
                int nbActions)
Parameters:
p -
nbActions -

addAction

public void addAction(Classifier.Perception p,
                      Classifier.Action ac)
Parameters:
p -

getBooleanImmediateValue

public int getBooleanImmediateValue(Classifier.Perception p)
Parameters:
p -
Returns:
int

getPreciseImmediateValue

public int getPreciseImmediateValue(Classifier.Perception p)
Parameters:
p -
Returns:
int