gui
Class CalendarConfiguration

java.lang.Object
  extended by gui.CalendarConfiguration

public class CalendarConfiguration
extends java.lang.Object

Class for getting global parameter settings for the application. These parameters are taken from the file "calendar.prop".


Field Summary
private  Language appLanguage
           
private  Language[] appLanguages
           
private  java.util.Properties configuration
           
private  java.nio.charset.Charset dialogueServerCharset
           
private  java.lang.String dialogueServerHost
           
private  int dialogueServerPort
           
private  java.lang.String[] globalProcesses
           
private  java.lang.String[] languageNames
           
private static java.util.logging.Logger logger
           
 
Constructor Summary
CalendarConfiguration(java.lang.String configFile)
           
 
Method Summary
 boolean computeXCPURT()
           
 Language[] getAvailableLanguages()
           
 java.util.Properties getConfiguration()
           
 java.lang.String getDefaultFontName()
           
 int getDefaultFontSize()
           
 java.lang.String getDialogPackage(java.lang.String language)
           
 java.lang.String getDialogServerCommand()
           
 int getDialogueNoHelpSentences()
           
 java.nio.charset.Charset getDialogueServerCharset()
           
 java.lang.String getDialogueServerHost()
           
 int getDialogueServerPort()
           
 int getDialogueServerStartingTime()
           
 java.lang.String[] getGlobalProcesses()
           
(package private)  Language getLanguageByName(java.lang.String langName)
           
 java.lang.String getProcessHandlerLibrary()
           
 int getRecognitionNBest()
           
 java.lang.String getRegulusServerCommand()
           
 java.lang.String getRegulusServerHost()
           
 int getRegulusServerPort()
           
 long getRegulusServerTimeOut()
           
 long getStartupDialogServerWaitTime()
           
 long getStartupRecognitionServerWaitTime()
           
 long getVocalizerKillWaitTime()
           
 java.lang.String getWaveformLoggingDirectory()
           
private  java.lang.String[] initAvailableLanguages()
          Extract names of languages from config file
 void initGlobalProcesses()
           
 boolean showInlineHelp()
           
 boolean showRawRecognitionResult()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static java.util.logging.Logger logger

configuration

private java.util.Properties configuration

languageNames

private java.lang.String[] languageNames

appLanguages

private Language[] appLanguages

globalProcesses

private java.lang.String[] globalProcesses

appLanguage

private Language appLanguage

dialogueServerHost

private java.lang.String dialogueServerHost

dialogueServerPort

private int dialogueServerPort

dialogueServerCharset

private java.nio.charset.Charset dialogueServerCharset
Constructor Detail

CalendarConfiguration

public CalendarConfiguration(java.lang.String configFile)
Parameters:
configFile -
Method Detail

initAvailableLanguages

private java.lang.String[] initAvailableLanguages()
Extract names of languages from config file


getLanguageByName

Language getLanguageByName(java.lang.String langName)
                     throws java.lang.Exception
Throws:
java.lang.Exception

getAvailableLanguages

public Language[] getAvailableLanguages()

getProcessHandlerLibrary

public java.lang.String getProcessHandlerLibrary()

getDialogueNoHelpSentences

public int getDialogueNoHelpSentences()

initGlobalProcesses

public void initGlobalProcesses()

getGlobalProcesses

public java.lang.String[] getGlobalProcesses()

getWaveformLoggingDirectory

public java.lang.String getWaveformLoggingDirectory()

getRecognitionNBest

public int getRecognitionNBest()

getVocalizerKillWaitTime

public long getVocalizerKillWaitTime()

getStartupRecognitionServerWaitTime

public long getStartupRecognitionServerWaitTime()
Returns:

getStartupDialogServerWaitTime

public long getStartupDialogServerWaitTime()
Returns:

getRegulusServerPort

public int getRegulusServerPort()

getRegulusServerHost

public java.lang.String getRegulusServerHost()

getRegulusServerTimeOut

public long getRegulusServerTimeOut()

getDialogServerCommand

public java.lang.String getDialogServerCommand()

getDialogPackage

public java.lang.String getDialogPackage(java.lang.String language)

getRegulusServerCommand

public java.lang.String getRegulusServerCommand()

showInlineHelp

public boolean showInlineHelp()
Returns:

computeXCPURT

public boolean computeXCPURT()
Returns:

showRawRecognitionResult

public boolean showRawRecognitionResult()
Returns:

getDialogueServerStartingTime

public int getDialogueServerStartingTime()

getConfiguration

public java.util.Properties getConfiguration()
Returns:

getDefaultFontName

public java.lang.String getDefaultFontName()

getDefaultFontSize

public int getDefaultFontSize()

getDialogueServerHost

public java.lang.String getDialogueServerHost()

getDialogueServerPort

public int getDialogueServerPort()

getDialogueServerCharset

public java.nio.charset.Charset getDialogueServerCharset()