com.kuka.nav.command
Interface NavExecutionResult

All Superinterfaces:
com.kuka.command.IExecutionResult

public interface NavExecutionResult
extends com.kuka.command.IExecutionResult

Represents the result of the execution of a command.

Can be retrieved using methods ICommandExecutionContainer.getResult() or ICommandExecutionContainer.awaitFinalized() when container reaches its "finalized" state.


Method Summary
 boolean hasError()
          Returns true if the corresponding command finished with an error.
 boolean hasTimedOut()
          Returns true if the corresponding command has timed out before it was finished.
 
Methods inherited from interface com.kuka.command.IExecutionResult
getError, isCompleted, wasCanceled
 

Method Detail

hasTimedOut

boolean hasTimedOut()
Returns true if the corresponding command has timed out before it was finished.

If this method returns true then IExecutionResult.isCompleted() will return false.

Returns:
true if the corresponding command has timed out before it was finished

hasError

boolean hasError()
Returns true if the corresponding command finished with an error.

If this method returns true then IExecutionResult.isCompleted() will return false. The error can be retrieved with IExecutionResult.getError().

Note: If a command was canceled by the user or was stopped due to the user parameterized timeout, this will not be rated as an error. To check for these cases, use IExecutionResult.wasCanceled() or hasTimedOut(), respectively. To check whether a command was executed successfully, use IExecutionResult.isCompleted().

Returns:
true if the corresponding command finished with an error


Copyright © 2019. All rights reserved.