|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IExecutionContainer
The interface of the execution container. It represents the execution of an action.
| Method Summary | |
|---|---|
void |
await()
Blocks the calling thread until the container has finished it's execution. |
void |
await(long timeout,
TimeUnit unit)
Blocks the calling thread until the container has finished it's execution. |
void |
cancel()
Cancels this container. |
String |
getErrorMessage()
Gets the error message for the container. |
IFiredConditionInfo |
getFiredBreakConditionInfo()
Gets the user condition that has fired and caused the stopping of this motion container. |
ICommandRuntimeData |
getRuntimeData()
Gets the custom runtime data associated with this container. |
boolean |
hasError()
Checks if this container is in an error state. |
boolean |
hasFired(ICondition condition)
Tests whether the given condition has fired for this container. this is equivalent to {@code getFiredConditionInfo() ! |
boolean |
isFinished()
Checks if the container has finished it's execution either with a successful execution or with an error. |
void |
validate()
Validates this container and throws an exception if the container is invalid or was canceled. |
| Method Detail |
|---|
void cancel()
void await()
await in interface com.kuka.common.concurrent.IWaitTokencom.kuka.common.ThreadInterruptedException - if the thread was interrupted while waiting
void await(long timeout,
TimeUnit unit)
throws TimeoutException
await in interface com.kuka.common.concurrent.IWaitTokentimeout - The timeout.unit - The unit of the timeout.
com.kuka.common.ThreadInterruptedException - if the thread was interrupted while waiting
TimeoutException - the wait timed outvoid validate()
CancelledException - if container command was canceled.
CommandInvalidException - if container command goes into invalid state (controller
error).
ExternalStopException - if command was stopped because of some external signal.boolean isFinished()
isFinished in interface com.kuka.common.concurrent.IWaitTokenboolean hasError()
String getErrorMessage()
boolean hasFired(ICondition condition)
getFiredConditionInfo() != null && getFiredConditionInfo().getFiredCondition() == condition
condition - the condition to test if it has fired.
true if the condition has fired, false
otherwise.IFiredConditionInfo getFiredBreakConditionInfo()
null if no user defined condition
has fired.
HINT regarding motion batches: if the motion contained in this container
is a motion batch, only the fired condition of the batch itself
shows up in the info. The stop conditions that may have fired on the
motions within the batch don't stop the batch. That's why in this
case the fired condition info will be null.
null.ICommandRuntimeData getRuntimeData()
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||