org.alicebot.server.core.loader
Class AIMLLoader

java.lang.Object
  extended by org.alicebot.server.core.loader.AIMLLoader
All Implemented Interfaces:
AIMLReaderListener, GenericReaderListener

public class AIMLLoader
extends java.lang.Object
implements AIMLReaderListener

A utility class used by the Graphmaster to load AIML files.

Version:
4.1.3
Author:
Richard Wallace, Kris Drent, Jon Baer, Thomas Ringate, Pedro Colla

Field Summary
protected static boolean SHOW_CONSOLE
          Whether to show the console.
 
Constructor Summary
AIMLLoader(java.lang.String filename, java.lang.String botid)
          Initializes the AIMLLoader.
 
Method Summary
 void newCategory(java.lang.String pattern, java.lang.String that, java.lang.String topic, java.lang.String template)
          Adds a new category to the Graphmaster.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHOW_CONSOLE

protected static final boolean SHOW_CONSOLE
Whether to show the console.

Constructor Detail

AIMLLoader

public AIMLLoader(java.lang.String filename,
                  java.lang.String botid)
Initializes the AIMLLoader.

Method Detail

newCategory

public void newCategory(java.lang.String pattern,
                        java.lang.String that,
                        java.lang.String topic,
                        java.lang.String template)
Description copied from interface: AIMLReaderListener
Adds a new category to the Graphmaster. Usually called by an AIML parser such as TemplateParser.

Specified by:
newCategory in interface AIMLReaderListener
Parameters:
pattern - the pattern portion of a Graphmaster path
that - the that portion of a Graphmaster path
topic - the topic portion of a Graphmaster path
template - the template portion of a Graphmaster path