public class ProposalConversation extends Conversation<ProposalConversation.State>
Modifier and Type | Class and Description |
---|---|
static class |
ProposalConversation.State |
endState, startState, stateChangedLatch
Constructor and Description |
---|
ProposalConversation(TaskActivity<?> task,
java.lang.Object peer) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Json msg)
called by client task when accepting
|
boolean |
confirm(Json msg)
called by server when confirming
|
void |
disconfirm(java.lang.Object msg)
called by server when disconfirming
|
boolean |
propose(Json msg)
Server-side behavior: send a proposal.
|
void |
reject(java.lang.Object msg)
called by client when rejecting
|
doRun, getId, getMessage, handleIncomingMessage, initiate, registerPerformativeTransition, say, setId
afterStateChanged, compareAndSetState, getEndState, getStartState, getState, isStopped, run, setState, setStateListener
public ProposalConversation(TaskActivity<?> task, java.lang.Object peer)
public boolean propose(Json msg)
msg
- public boolean accept(Json msg)
msg
- public void reject(java.lang.Object msg)
msg
- public boolean confirm(Json msg)
msg
- public void disconfirm(java.lang.Object msg)
msg
-