org.alicebot.server.core.processor
Class RandomProcessor

java.lang.Object
  extended by org.alicebot.server.core.processor.Processor
      extended by org.alicebot.server.core.processor.AIMLProcessor
          extended by org.alicebot.server.core.processor.RandomProcessor

public class RandomProcessor
extends AIMLProcessor

Handles a random element.

This improved version (since 4.1.5) employs the notion that to achieve the kind of randomness expected by users and AIML authors, the following requirements exist:

Version:
4.1.5
Author:
Noel Bush, Jon Baer, Thomas Ringate, Pedro Colla, Jay Myers

Field Summary
static java.lang.String label
           
 
Fields inherited from class org.alicebot.server.core.processor.Processor
EMPTY_STRING, ENABLED, ID, NAME, NAME_EQUALS, VALUE, VALUE_EQUALS
 
Constructor Summary
RandomProcessor()
           
 
Method Summary
 java.lang.String process(int level, XMLNode tag, TemplateParser parser)
           
 
Methods inherited from class org.alicebot.server.core.processor.AIMLProcessor
process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

label

public static final java.lang.String label
See Also:
Constant Field Values
Constructor Detail

RandomProcessor

public RandomProcessor()
Method Detail

process

public java.lang.String process(int level,
                                XMLNode tag,
                                TemplateParser parser)
                         throws AIMLProcessorException
Specified by:
process in class AIMLProcessor
Throws:
AIMLProcessorException