|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.bdi.planlib.protocols.InteractionState
public class InteractionState
The state of the execution of an interaction.
| Field Summary | |
|---|---|
protected java.util.Map |
cancel_response_contents
The cancel response contents (if any). |
protected java.util.Map |
cancel_responses
The received cancel responses (if any). |
static java.lang.String |
CANCELLATION_FAILED
Constant identifying failed cancellation of interaction (failure explicitly stated by receiver side). |
static java.lang.String |
CANCELLATION_SUCCEEDED
Constant identifying successful cancellation of interaction. |
static java.lang.String |
CANCELLATION_UNKNOWN
Constant identifying unknown state of cancellation of interaction (no response from receiver side within timeout). |
protected java.lang.Object |
failure
The failure (if any). |
static java.lang.String |
INTERACTION_CANCELLED
Interaction state cancelled. |
static java.lang.String |
INTERACTION_FINISHED
Interaction state finished. |
static java.lang.String |
INTERACTION_INITIAL
Interaction state initial (not yet started). |
static java.lang.String |
INTERACTION_RUNNING
Interaction state running. |
protected java.lang.String |
interaction_state
The interaction state. |
| Constructor Summary | |
|---|---|
InteractionState()
Create a new interaction state in default initial state "running". |
|
| Method Summary | |
|---|---|
void |
addCancelResponse(IComponentIdentifier responder,
java.lang.String response,
java.lang.Object content)
Add a cancel response. |
IComponentIdentifier[] |
getCancelResponders(java.lang.String response)
Get all agents with a specific cancel response. |
java.lang.String |
getCancelResponse(IComponentIdentifier responder)
Get the cancel response of an agent. |
java.lang.Object |
getCancelResponseContent(IComponentIdentifier responder)
Get the details of a cancel response of a given agent. |
java.lang.Object |
getFailure()
Get the failure description. |
java.lang.String |
getInteractionState()
Get the interaction state. |
void |
setFailure(java.lang.Object failure)
Set the failure description. |
void |
setInteractionState(java.lang.String interaction_state)
Set the interaction state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String INTERACTION_INITIAL
public static final java.lang.String INTERACTION_RUNNING
public static final java.lang.String INTERACTION_CANCELLED
public static final java.lang.String INTERACTION_FINISHED
public static final java.lang.String CANCELLATION_SUCCEEDED
public static final java.lang.String CANCELLATION_FAILED
public static final java.lang.String CANCELLATION_UNKNOWN
protected java.lang.String interaction_state
protected java.lang.Object failure
protected java.util.Map cancel_responses
protected java.util.Map cancel_response_contents
| Constructor Detail |
|---|
public InteractionState()
| Method Detail |
|---|
public java.lang.Object getFailure()
public void setFailure(java.lang.Object failure)
failure - The failure description to set.public java.lang.String getInteractionState()
public void setInteractionState(java.lang.String interaction_state)
interaction - state The interaction state to set.
public void addCancelResponse(IComponentIdentifier responder,
java.lang.String response,
java.lang.Object content)
public IComponentIdentifier[] getCancelResponders(java.lang.String response)
public java.lang.String getCancelResponse(IComponentIdentifier responder)
public java.lang.Object getCancelResponseContent(IComponentIdentifier responder)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||