org.hops.lg.pg
Class LDProcess

java.lang.Object
  extended by org.hops.lg.pg.LDProcess

public class LDProcess
extends java.lang.Object

Process the LanguageDescriptor structure and generate sentences classified by rule names and attributes


Constructor Summary
LDProcess()
          Creates a new instance of LDProcess
 
Method Summary
 java.util.HashMap patternsPhrases(lg_util.LG_LD lg, lg_util.LG_LD lg_general)
          process the patterns hashmap and returns the set of phrases for each pattern
 java.util.HashMap RulesPhrases(lg_util.LG_LD lg, lg_util.LG_LD lg_general, java.util.HashMap patterns, java.util.HashMap patterns_general)
          Process the rules of the language descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDProcess

public LDProcess()
Creates a new instance of LDProcess

Method Detail

RulesPhrases

public java.util.HashMap RulesPhrases(lg_util.LG_LD lg,
                                      lg_util.LG_LD lg_general,
                                      java.util.HashMap patterns,
                                      java.util.HashMap patterns_general)
Process the rules of the language descriptor. For each rule, serch the phrases of each mark and generates a complete phrase. Store the phrases ordered: Open, Mid, Directive, Help and Dtmf

Parameters:
lg - the language descriptor to process
lg_general - is a mark is not found in the language descriptor, it searchs in the general one.
patterns - the patterns phrases generated for the lg
patterns_general - the patterns phrases generated for the lg_general
Returns:
the table of phrases

patternsPhrases

public java.util.HashMap patternsPhrases(lg_util.LG_LD lg,
                                         lg_util.LG_LD lg_general)
process the patterns hashmap and returns the set of phrases for each pattern

Parameters:
lg - the language generator to process
lg_general - the general language generator.
Returns:
an HashMap de LG_Phrases