public class TextEntry extends BasicSense
Modifier and Type | Field and Description |
---|---|
static int |
LOG_SLEEP |
conversations, DAY, DEFAULT_SPEAKER, engaged, HOUR, MAX_FILE_SIZE, MINUTE, RETRY
Constructor and Description |
---|
TextEntry() |
Modifier and Type | Method and Description |
---|---|
void |
clearConversation() |
Vertex |
getConversation(Network network)
Return the current conversation.
|
java.lang.Long |
getConversationId()
Return the current conversation.
|
java.lang.String |
getInfo() |
TextListener |
getTextListener() |
Vertex |
getUser(Network network)
Return the user involved in the conversation.
|
java.io.Writer |
getWriter()
Return the writer used to output text to.
|
void |
input(java.lang.Object inputText,
Network network)
Process the text input.
|
void |
inputCommand(CommandInput command,
Network network)
Process the text sentence.
|
void |
inputSentence(TextInput text,
Network network)
Process the text sentence.
|
void |
loadChat(java.lang.String text,
java.lang.String format,
boolean processUnderstanding,
boolean pin)
Process the log file for a chat conversation.
|
void |
loadChatFile(java.io.File file,
java.lang.String format,
java.lang.String encoding,
boolean processUnderstanding,
boolean pin)
Process the log file.
|
void |
loadChatFile(java.io.InputStream stream,
java.lang.String format,
java.lang.String encoding,
int maxSize,
boolean processUnderstanding,
boolean pin)
Process the log file for a chat conversation.
|
void |
loadChatFile(java.net.URL file,
java.lang.String format,
java.lang.String encoding,
boolean processUnderstanding,
boolean pin)
Process the log file from a URL.
|
void |
output(Vertex output)
Output the vertex to text.
|
void |
pool()
Reset state when instance is pooled.
|
void |
processChatLog(java.lang.String log,
boolean comprehension,
boolean pin)
Process the log file for a chat conversation.
|
void |
processCSVLog(java.lang.String log,
boolean pin)
Process the log file for list a of question/answers.
|
void |
processResponseLog(java.lang.String log,
boolean pin)
Process the log file for a list of question/answers.
|
void |
setConversation(Vertex conversation)
Set the current conversation.
|
void |
setConversationId(long conversationId)
Set the current conversation.
|
void |
setInfo(java.lang.String info) |
void |
setTextListener(TextListener textListener) |
void |
setUser(Vertex user)
Set the user involved in the conversation.
|
void |
setWriter(java.io.Writer writer)
Set the writer used to output text to.
|
void |
shutdown()
Stop sensing.
|
addListener, awake, checkEngaged, checkSentence, discover, discoverSentence, getAction, getBot, getEmotionalState, getLanguageState, getListeners, getName, getPrimitive, getResponseListener, getShortTermMemory, initialize, input, isEnabled, log, log, log, migrateProperties, notifyExceptionListeners, notifyResponseListener, printInput, removeListener, saveProperties, setAction, setBot, setEmotionalState, setIsEnabled, setLanguageState, setName, setResponseListener, toString
public TextListener getTextListener()
public void setTextListener(TextListener textListener)
public void setUser(Vertex user)
public java.lang.String getInfo()
public void setInfo(java.lang.String info)
public java.io.Writer getWriter()
public void setWriter(java.io.Writer writer)
public void input(java.lang.Object inputText, Network network)
input
in interface Sense
input
in class BasicSense
public void inputCommand(CommandInput command, Network network)
public void output(Vertex output)
output
in interface Sense
output
in class BasicSense
public java.lang.Long getConversationId()
public void clearConversation()
public void shutdown()
shutdown
in interface Sense
shutdown
in class BasicSense
public void pool()
pool
in interface Sense
pool
in class BasicSense
public void setConversation(Vertex conversation)
public void setConversationId(long conversationId)
public void loadChatFile(java.net.URL file, java.lang.String format, java.lang.String encoding, boolean processUnderstanding, boolean pin)
public void loadChatFile(java.io.File file, java.lang.String format, java.lang.String encoding, boolean processUnderstanding, boolean pin)
public void loadChatFile(java.io.InputStream stream, java.lang.String format, java.lang.String encoding, int maxSize, boolean processUnderstanding, boolean pin)
public void loadChat(java.lang.String text, java.lang.String format, boolean processUnderstanding, boolean pin)
public void processChatLog(java.lang.String log, boolean comprehension, boolean pin)
public void processResponseLog(java.lang.String log, boolean pin)
public void processCSVLog(java.lang.String log, boolean pin)