org.hops.ext
Class statisticsData

java.lang.Object
  extended by org.hops.ext.statisticsData

public class statisticsData
extends java.lang.Object


Nested Class Summary
 class statisticsData.AttrHash
           
 class statisticsData.attributeInfo
          informació sobre l'atribut
 
Constructor Summary
statisticsData()
          Creates a new instance of statisticsData
 
Method Summary
 void actualize_counters(int _sysinter, int _usrinter, java.util.Date sysInitDate, java.util.Date usrInitDate)
          actualitza els comptadors de temps i nombre de torns
 void clear()
           
 void descarrega_attributes_info()
          fa recompte de sumes
 java.util.HashMap geNumTurnsAskAnswer()
          Returns the hash with the answered attributes
 int getNumAnsNous()
          number new answer-attributes in the current intervention
 int getNumAnsRepetits()
          number repeated answer-attributes in the current intervention
 int getNumAskNous()
          number new asks in the current intervention
 int getNumAskRepetits()
          number repeated asks in the current intervention
 java.util.HashMap getNumSystemAsk()
          Returns the hash with the ask-attributes raised by the system
 java.util.HashMap getNumUserAnswer(java.lang.String key)
          Returns the hash with the answered attributes raised by the user
 int getSysInterventions()
          sys_inter getter - number of system intervention including greet
 java.util.ArrayList getSystemInterventionsTimes()
          system interventions array containing the times for each intervention of the system
 long getSysTime()
          sys_time getter - the time the system spent answering.
 long getTotalTime()
          total_time of the dialogue getter in miliseconds
 java.util.ArrayList getUserInterventionsTimes()
          user interventions array containing the times for each intervention of the user
 int getUsrInterventions()
          usr_inter getter - numer of user interventions
 long getUsrTime()
          usr_time getter - the time the user spent answering.
 void loadAttributesInfo(java.lang.String pathfile)
          loads the attributes info file
 java.lang.String toString()
           
 void trace_attributes(utterance ut)
          processar utterance per actualitzar info dels atributs
 void WriteStatistics(java.io.PrintStream outstat, java.lang.String sysstate, java.lang.String sessionId)
           
 void WriteStatistics(java.lang.String sysstate, java.lang.String sessionId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

statisticsData

public statisticsData()
Creates a new instance of statisticsData

Method Detail

loadAttributesInfo

public void loadAttributesInfo(java.lang.String pathfile)
loads the attributes info file


getNumAnsRepetits

public int getNumAnsRepetits()
number repeated answer-attributes in the current intervention


getNumAnsNous

public int getNumAnsNous()
number new answer-attributes in the current intervention


getNumAskRepetits

public int getNumAskRepetits()
number repeated asks in the current intervention


getNumAskNous

public int getNumAskNous()
number new asks in the current intervention


getSysInterventions

public int getSysInterventions()
sys_inter getter - number of system intervention including greet


getUsrInterventions

public int getUsrInterventions()
usr_inter getter - numer of user interventions


getSysTime

public long getSysTime()
sys_time getter - the time the system spent answering. Include DM processing and LG generation


getUsrTime

public long getUsrTime()
usr_time getter - the time the user spent answering. Inlcude thinking and parsing


getSystemInterventionsTimes

public java.util.ArrayList getSystemInterventionsTimes()
system interventions array containing the times for each intervention of the system


getUserInterventionsTimes

public java.util.ArrayList getUserInterventionsTimes()
user interventions array containing the times for each intervention of the user


getTotalTime

public long getTotalTime()
total_time of the dialogue getter in miliseconds


getNumUserAnswer

public java.util.HashMap getNumUserAnswer(java.lang.String key)
Returns the hash with the answered attributes raised by the user


geNumTurnsAskAnswer

public java.util.HashMap geNumTurnsAskAnswer()
Returns the hash with the answered attributes


getNumSystemAsk

public java.util.HashMap getNumSystemAsk()
Returns the hash with the ask-attributes raised by the system


actualize_counters

public void actualize_counters(int _sysinter,
                               int _usrinter,
                               java.util.Date sysInitDate,
                               java.util.Date usrInitDate)
actualitza els comptadors de temps i nombre de torns


trace_attributes

public void trace_attributes(utterance ut)
processar utterance per actualitzar info dels atributs


descarrega_attributes_info

public void descarrega_attributes_info()
fa recompte de sumes


clear

public void clear()

WriteStatistics

public void WriteStatistics(java.io.PrintStream outstat,
                            java.lang.String sysstate,
                            java.lang.String sessionId)

WriteStatistics

public void WriteStatistics(java.lang.String sysstate,
                            java.lang.String sessionId)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object