org.hops.ext
Class statisticsData.AttrHash

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by org.hops.ext.statisticsData.AttrHash
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map
Enclosing class:
statisticsData

public class statisticsData.AttrHash
extends java.util.HashMap

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
static java.lang.String ATTR_AFC
           
static java.lang.String ATTR_CA
           
static java.lang.String ATTR_GENERAL
           
static java.lang.String ATTR_LOC
           
 
Constructor Summary
statisticsData.AttrHash(java.lang.String attributes_file)
          Creates a new instance of AttrHash.
 
Method Summary
 void processSystemAsk(action act, int turnnumber)
          process the attributes interpreted from the system utterance
 void processUserAction(action act, int turnnumber)
          process the attributes interpreted from the user utterance
 void reset()
          inicialitza tots els valors
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

ATTR_GENERAL

public static final java.lang.String ATTR_GENERAL
See Also:
Constant Field Values

ATTR_CA

public static final java.lang.String ATTR_CA
See Also:
Constant Field Values

ATTR_LOC

public static final java.lang.String ATTR_LOC
See Also:
Constant Field Values

ATTR_AFC

public static final java.lang.String ATTR_AFC
See Also:
Constant Field Values
Constructor Detail

statisticsData.AttrHash

public statisticsData.AttrHash(java.lang.String attributes_file)
Creates a new instance of AttrHash. Reads the attributes_file for generating the hash of attributes with the information about them

Method Detail

reset

public void reset()
inicialitza tots els valors


processUserAction

public void processUserAction(action act,
                              int turnnumber)
process the attributes interpreted from the user utterance


processSystemAsk

public void processSystemAsk(action act,
                             int turnnumber)
process the attributes interpreted from the system utterance