|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opencyc.chat.ChatInterpreter
Provides a chat conversation interpreter.
Copyright 2001 Cycorp, Inc., license is open source GNU LGPL.
THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Field Summary | |
protected ChatterBot |
chatterBot
the chatterbot |
protected CycAccess |
cycAccess
Provides wrappers for the Cyc API and manages the connection to the Cyc server. |
protected Interpreter |
interpreter
the state machine interpreter |
Constructor Summary | |
ChatInterpreter(CycAccess cycAccess)
Constructs a new ChatInterpreter object given the cyc api access object. |
Method Summary | |
ChatterBot |
getChatterBot()
Gets the chatterbot |
Interpreter |
getInterpreter()
Gets the state machine interpreter |
void |
receiveChatMessage(java.lang.String chatUserNickname,
java.lang.String chatMessage)
Receives the given chat message from the given chat partner. |
void |
sendChatMessage(java.lang.String chatMessage)
Sends the given chat message into the chat system. |
void |
setChatterBot(ChatterBot chatterBot)
Sets the chatterbot |
void |
setInterpreter(Interpreter interpreter)
Sets the state machine interpreter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ChatterBot chatterBot
protected Interpreter interpreter
protected CycAccess cycAccess
Constructor Detail |
public ChatInterpreter(CycAccess cycAccess)
cycAccess
- the given cyc api access objectMethod Detail |
public void sendChatMessage(java.lang.String chatMessage) throws ChatException
chatMessage
- the chat messagepublic void receiveChatMessage(java.lang.String chatUserNickname, java.lang.String chatMessage) throws CycApiException, java.io.IOException, java.net.UnknownHostException, ChatException
chatUserNickname
- the preferred name (possibly not unique) of the
chat partnerchatMessage
- the chat messagepublic Interpreter getInterpreter()
public void setInterpreter(Interpreter interpreter)
interpreter
- the state machine interpreterpublic ChatterBot getChatterBot()
public void setChatterBot(ChatterBot chatterBot)
chatterBot
- the chatterbot
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |