|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Observable is.lill.acre.conversation.Conversation
public class Conversation
Constructor Summary | |
---|---|
Conversation(Protocol p,
ConversationManager manager)
Constructor |
Method Summary | |
---|---|
boolean |
advance(IACREMessage message)
Advance this conversation by matching one of its transitions against the given message |
boolean |
advancedBy(IACREMessage message)
Determine whether the given message is capable of advancing this conversation. |
java.lang.String |
getConversationId()
Get the unique Conversation ID associated with this conversation |
State |
getCurrentState()
Get the current state of this conversation |
java.util.Set<IACREAgentID> |
getParticipants()
Get the participants in this conversation |
Protocol |
getProtocol()
Get the underlying protocol behind this conversation |
State |
getState()
|
ConversationStatus |
getStatus()
|
void |
setStatus(ConversationStatus status)
|
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Conversation(Protocol p, ConversationManager manager)
p
- The underlying Protocol
manager
- The ConversationManager
tasked with managing this
conversationMethod Detail |
---|
public boolean advancedBy(IACREMessage message)
message
- A message against which to match the conversation's active
transitions
true
if the conversation can be advanced by the given
message, false
otherwisepublic void setStatus(ConversationStatus status)
public ConversationStatus getStatus()
public boolean advance(IACREMessage message)
message
- A message to trigger a transition TODO: this assumes only one
transition matchespublic java.lang.String getConversationId()
public java.util.Set<IACREAgentID> getParticipants()
public State getCurrentState()
public Protocol getProtocol()
public State getState()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |