|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opencyc.conversation.ConversationFactory
Makes chat conversations which can be interpreted by the Interpreter.
The chat conversation is in the form of a text conversation using asynchronous receiving and sending of messages.
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 ActionFactory |
actionFactory
Action object factory |
protected static java.util.HashMap |
conversationCache
Caches conversation objects to keep from making them twice. |
protected static State |
currentState
|
protected static java.util.ArrayList |
globalArcs
Arcs which apply to every state. |
protected TemplateFactory |
templateFactory
Template object factory |
Constructor Summary | |
ConversationFactory()
Constructs a new ConversationFactory object. |
Method Summary | |
Conversation |
getConversation(java.lang.String name)
Returns the Conversation having the given name; |
java.util.ArrayList |
getGlobalArcs()
Returns the list of arcs which apply to every state. |
void |
initialize()
Initializes this object. |
protected void |
makeAllConversations()
Initialize all the conversations. |
protected void |
makeAllGlobalArcs()
Initializes the global arcs |
Conversation |
makeChat()
Makes a "chat" Conversation. |
void |
makeDoNotUnderstoodArc()
Makes a "do-not-understand" arc for every conversation state. |
void |
makeQuitArc()
Makes a "quit" arc for every conversation state. |
Conversation |
makeTermQuery()
Makes a "term-query" Conversation. |
static void |
reset()
Resets the conversation caches. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static java.util.HashMap conversationCache
protected static java.util.ArrayList globalArcs
protected ActionFactory actionFactory
protected TemplateFactory templateFactory
protected static final State currentState
Constructor Detail |
public ConversationFactory()
Method Detail |
public static void reset()
public void initialize()
protected void makeAllGlobalArcs()
protected void makeAllConversations()
public Conversation getConversation(java.lang.String name)
name
- the conversation namepublic java.util.ArrayList getGlobalArcs()
public void makeDoNotUnderstoodArc()
public void makeQuitArc()
public Conversation makeChat()
public Conversation makeTermQuery()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |