net.chayden.eliza
Class ElizaMain

java.lang.Object
  |
  +--net.chayden.eliza.ElizaMain

public class ElizaMain
extends java.lang.Object

Eliza main class. Stores the processed script. Does the input transformations.


Constructor Summary
ElizaMain()
           
 
Method Summary
 void collect(java.lang.String s)
          Process a line of script input.
 boolean finished()
           
 boolean handleEvent(java.awt.Event event)
           
 void print()
          Print the stored script.
 java.lang.String processInput(java.lang.String s)
          Process a line of input.
 int readScript(boolean local, java.lang.String script)
           
 void response(java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElizaMain

public ElizaMain()
Method Detail

finished

public boolean finished()

collect

public void collect(java.lang.String s)
Process a line of script input.


print

public void print()
Print the stored script.


processInput

public java.lang.String processInput(java.lang.String s)
Process a line of input.


response

public void response(java.lang.String str)

readScript

public int readScript(boolean local,
                      java.lang.String script)

handleEvent

public boolean handleEvent(java.awt.Event event)