|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.scribble.protocol.monitor.DefaultSession
public class DefaultSession

This class represents the default implementation of the conversation interface.
| Constructor Summary | |
|---|---|
|
DefaultSession()
Default constructor. |
protected |
DefaultSession(int returnIndex)
This constructor is initialized with the return index for use when the nested session completes. |
protected |
DefaultSession(Session main,
int returnIndex)
This constructor is initialized with the return index for use when the nested session completes. |
| Method Summary | |
|---|---|
void |
addNodeIndex(int index)
This method adds a node index to the session. |
Session |
createInterruptConversation(Session main,
int returnIndex)
This method creates a nested conversation, associated with an interrupt scope, that should return to the supplied index when it completes. |
Session |
createNestedConversation(int returnIndex)
This method creates a nested conversation that should return to the supplied index when it completes. |
List<Session> |
getInterruptConversations()
This method returns the list of interrupt conversations. |
List<Session> |
getNestedConversations()
This method returns the list of nested conversations. |
int |
getNodeIndexAt(int pos)
This method returns the node index at the specified position. |
int |
getNumberOfNodeIndexes()
This method returns the number of node indexes associated with the session. |
Session |
getParentConversation()
This method returns the parent conversation. |
int |
getReturnIndex()
This method retrieves the 'return' index associated with a nested session. |
boolean |
isFinished()
This method indicates whether the session has finished. |
void |
readExternal(ObjectInput ois)
|
void |
removeNestedConversation(Session session)
This method removes the nested session. |
void |
removeNodeIndexAt(int pos)
This method removes a node index to the session. |
void |
setReturnIndex(int returnIndex)
|
void |
writeExternal(ObjectOutput oos)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSession()
protected DefaultSession(int returnIndex)
returnIndex - The return index
protected DefaultSession(Session main,
int returnIndex)
main - The main sessionreturnIndex - The return index| Method Detail |
|---|
public void addNodeIndex(int index)
addNodeIndex in interface Sessionindex - The indexpublic void removeNodeIndexAt(int pos)
removeNodeIndexAt in interface Sessionpos - The indexpublic int getNumberOfNodeIndexes()
getNumberOfNodeIndexes in interface Sessionpublic int getNodeIndexAt(int pos)
getNodeIndexAt in interface Sessionpos - The position
public boolean isFinished()
isFinished in interface Sessionpublic Session createNestedConversation(int returnIndex)
createNestedConversation in interface SessionreturnIndex - The return index
public Session createInterruptConversation(Session main,
int returnIndex)
createInterruptConversation in interface Sessionmain - The main sessionreturnIndex - The return index
public int getReturnIndex()
getReturnIndex in interface Sessionpublic void setReturnIndex(int returnIndex)
public List<Session> getNestedConversations()
getNestedConversations in interface Sessionpublic void removeNestedConversation(Session session)
removeNestedConversation in interface Sessionsession - The session to be removedpublic Session getParentConversation()
getParentConversation in interface Sessionpublic List<Session> getInterruptConversations()
getInterruptConversations in interface Session
public void readExternal(ObjectInput ois)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput oos)
throws IOException
writeExternal in interface ExternalizableIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||