public class InteractionState extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CANCELLATION_FAILED
Constant identifying failed cancellation of interaction (failure explicitly stated by receiver side).
|
static String |
CANCELLATION_SUCCEEDED
Constant identifying successful cancellation of interaction.
|
static String |
CANCELLATION_UNKNOWN
Constant identifying unknown state of cancellation of interaction (no response from receiver side within timeout).
|
static String |
INTERACTION_CANCELLED
Interaction state cancelled.
|
static String |
INTERACTION_FINISHED
Interaction state finished.
|
static String |
INTERACTION_INITIAL
Interaction state initial (not yet started).
|
static String |
INTERACTION_RUNNING
Interaction state running.
|
Constructor and Description |
---|
InteractionState()
Create a new interaction state
in default initial state "running".
|
Modifier and Type | Method and Description |
---|---|
void |
addCancelResponse(IComponentIdentifier responder,
String response,
Object content)
Add a cancel response.
|
IComponentIdentifier[] |
getCancelResponders(String response)
Get all agents with a specific cancel response.
|
String |
getCancelResponse(IComponentIdentifier responder)
Get the cancel response of an agent.
|
Object |
getCancelResponseContent(IComponentIdentifier responder)
Get the details of a cancel response of a given agent.
|
Object |
getFailure()
Get the failure description.
|
String |
getInteractionState()
Get the interaction state.
|
void |
setFailure(Object failure)
Set the failure description.
|
void |
setInteractionState(String interaction_state)
Set the interaction state.
|
public static final String INTERACTION_INITIAL
public static final String INTERACTION_RUNNING
public static final String INTERACTION_CANCELLED
public static final String INTERACTION_FINISHED
public static final String CANCELLATION_SUCCEEDED
public static final String CANCELLATION_FAILED
public static final String CANCELLATION_UNKNOWN
public InteractionState()
public Object getFailure()
public void setFailure(Object failure)
failure
- The failure description to set.public String getInteractionState()
public void setInteractionState(String interaction_state)
interaction
- state The interaction state to set.public void addCancelResponse(IComponentIdentifier responder, String response, Object content)
public IComponentIdentifier[] getCancelResponders(String response)
public String getCancelResponse(IComponentIdentifier responder)
public Object getCancelResponseContent(IComponentIdentifier responder)
Copyright © 2013. All Rights Reserved.