org.alicebot.server.core.targeting
Class TargetMaster
java.lang.Object
org.alicebot.server.core.targeting.Targeting
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
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 |
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 |
TargetMaster
public TargetMaster()
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 pathmatchThat
- the that
part of the matched pathmatchTopic
- the topic
part of the matched pathmatchTemplate
- the template
associated with the matched pathinputText
- the input text that was matchedinputThat
- the value of the that
predicate when the input was receivedinputTopic
- the value of the topic
predicate when the input was receivedresponse
- the response to the input
rollTargetData
public static void rollTargetData()
- Deletes all saved targeting data.
Rolls over the old file for safekeeping.