org.pandora.sense.text
Class TextEntry

java.lang.Object
  extended by org.pandora.sense.BasicSense
      extended by org.pandora.sense.text.TextEntry
All Implemented Interfaces:
Sense

public class TextEntry
extends BasicSense

Process text to and from networks and stimulates natural language thoughts.


Field Summary
static int LOG_SLEEP
           
static int MAX_FILE_SIZE
           
 
Fields inherited from class org.pandora.sense.BasicSense
DEFAULT_SPEAKER, RETRY
 
Constructor Summary
TextEntry()
           
 
Method Summary
 Vertex getConversation()
          Return the current conversation.
 Vertex getUser()
          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 inputSentence(TextInput text, Network network)
          Process the text sentence.
 void loadChatFile(java.io.File file)
          Process the log file.
 void loadChatFile(java.io.InputStream stream, int maxSize)
          Process the log file for a chat conversation.
 void loadChatFile(java.net.URL file)
          Process the log file from a URL.
 void output(Vertex output)
          Output the vertex to text.
 void processChatLog(java.lang.String log)
          Process the log file for a chat conversation.
 void setConversation(Vertex conversation)
          Set the current conversation.
 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.
 
Methods inherited from class org.pandora.sense.BasicSense
awake, getEmotionalState, getLanguageState, getName, getPandora, getPrimitive, getShortTermMemory, initialize, input, isEnabled, log, log, log, setEmotionalState, setIsEnabled, setLanguageState, setName, setPandora, shutdown, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG_SLEEP

public static int LOG_SLEEP

MAX_FILE_SIZE

public static int MAX_FILE_SIZE
Constructor Detail

TextEntry

public TextEntry()
Method Detail

getUser

public Vertex getUser()
Return the user involved in the conversation.


setUser

public void setUser(Vertex user)
Set the user involved in the conversation.


getWriter

public java.io.Writer getWriter()
Return the writer used to output text to.


setWriter

public void setWriter(java.io.Writer writer)
Set the writer used to output text to.


input

public void input(java.lang.Object inputText,
                  Network network)
Process the text input.

Specified by:
input in interface Sense
Overrides:
input in class BasicSense

inputSentence

public void inputSentence(TextInput text,
                          Network network)
Process the text sentence.


output

public void output(Vertex output)
Output the vertex to text.

Specified by:
output in interface Sense
Overrides:
output in class BasicSense

getConversation

public Vertex getConversation()
Return the current conversation.


setConversation

public void setConversation(Vertex conversation)
Set the current conversation.


loadChatFile

public void loadChatFile(java.net.URL file)
Process the log file from a URL.


loadChatFile

public void loadChatFile(java.io.File file)
Process the log file.


loadChatFile

public void loadChatFile(java.io.InputStream stream,
                         int maxSize)
Process the log file for a chat conversation. Input each message, in a listening only mode.


processChatLog

public void processChatLog(java.lang.String log)
Process the log file for a chat conversation. Input each message, in a listening only mode.