org.alicebot.server.core.targeting
Class TargetMaster

java.lang.Object
  extended by org.alicebot.server.core.targeting.Targeting
      extended by org.alicebot.server.core.targeting.TargetMaster

public class TargetMaster
extends Targeting

Manages the creation of new targets.

Author:
Richard Wallace, Jon Baer, Thomas Ringate, Pedro Colla, Noel Bush

Field Summary
 
Fields inherited from class org.alicebot.server.core.targeting.Targeting
CATEGORY_END, CATEGORY_START, EMPTY_STRING, INDENT, INPUT_END, INPUT_START, LINE_SEPARATOR, MATCH_END, MATCH_START, PATTERN_END, PATTERN_START, REPLY_END, REPLY_START, SPACE, TARGET_END, TARGET_START, TARGETS, TARGETS_END, TARGETS_START, TEMPLATE_END, TEMPLATE_START, TEXT_END, TEXT_START, THAT_END, THAT_START, TOPIC_END, TOPIC_NAME_BEGIN, TOPIC_NAME_END, TOPIC_START
 
Constructor Summary
TargetMaster()
           
 
Method Summary
static void add(java.lang.String matchPattern, java.lang.String matchThat, java.lang.String matchTopic, java.lang.String matchTemplate, java.lang.String inputText, java.lang.String inputThat, java.lang.String inputTopic, java.lang.String response)
          Adds a new target (no extension content) to the targets data file.
static void rollTargetData()
          Deletes all saved targeting data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TargetMaster

public TargetMaster()
Method Detail

add

public static void add(java.lang.String matchPattern,
                       java.lang.String matchThat,
                       java.lang.String matchTopic,
                       java.lang.String matchTemplate,
                       java.lang.String inputText,
                       java.lang.String inputThat,
                       java.lang.String inputTopic,
                       java.lang.String response)
Adds a new target (no extension content) to the targets data file.

Parameters:
matchPattern - the pattern part of the matched path
matchThat - the that part of the matched path
matchTopic - the topic part of the matched path
matchTemplate - the template associated with the matched path
inputText - the input text that was matched
inputThat - the value of the that predicate when the input was received
inputTopic - the value of the topic predicate when the input was received
response - the response to the input

rollTargetData

public static void rollTargetData()
Deletes all saved targeting data. Rolls over the old file for safekeeping.