|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opencyc.conversation.Conversation
Contains the attributes and behavior of a chat conversation.
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 java.util.HashMap |
conversationFsmStates
dictionary of conversation states, stateName --> State |
protected State |
initialState
inital conversation state |
protected java.lang.String |
name
name of the conversation |
Constructor Summary | |
protected |
Conversation(java.lang.String name)
Constructs a new Conversation object given the conversation name |
Method Summary | |
void |
addState(State conversationFsmState)
Records the stateId and associated State |
void |
addState(java.lang.String stateId,
State conversationFsmState)
Records the stateId and associated State |
State |
getInitialState()
Returns the initial conversation state. |
java.lang.String |
getName()
Returns the conversation name |
void |
setInitialState(State initialState)
Sets the initial conversation state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String name
protected State initialState
protected java.util.HashMap conversationFsmStates
Constructor Detail |
protected Conversation(java.lang.String name)
name
- the conversation nameMethod Detail |
public java.lang.String getName()
public void setInitialState(State initialState)
initialState
- the initial conversation statepublic State getInitialState()
public void addState(State conversationFsmState)
conversationFsmState
- the FSM node identified by its stateIdpublic void addState(java.lang.String stateId, State conversationFsmState)
stateId
- the given stateIdconversationFsmState
- the FSM node identified by the stateId
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |