com.kuka.command
Interface IExecutionState<T>

Type Parameters:
T - type of the implementing class.
All Superinterfaces:
Comparable<T>

public interface IExecutionState<T>
extends Comparable<T>

Represents state of command execution.

This interface represents the main states of command execution distinguished by a pipe.

Implementing class should represent execution state for specific command and resource types. It can be Enumeration, but it is not necessary.

See Also:
ICommandExecutionContainer

Method Summary
 boolean isExecuting()
          Command (responsible execution container) is being currently executed.
 boolean isFinalized()
          Command (responsible execution container) reached its final state.
 boolean isFinished()
          Command (responsible execution container) execution is finished.
 boolean isQueued()
          Command (responsible execution container) is queued for execution but is not executing.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

isQueued

boolean isQueued()
Command (responsible execution container) is queued for execution but is not executing.

Returns:
true if command is queued for execution.

isExecuting

boolean isExecuting()
Command (responsible execution container) is being currently executed.

There can be only one command in this state pro ICommandPipe

Returns:
true if command is being currently executed.

isFinished

boolean isFinished()
Command (responsible execution container) execution is finished.

This state means that execution of command is finished, but command has not reached its final state yet. The next command queued in a ICommandPipe can be activated. The command execution container in this state will not be removed from a pipe and could undergo some king of post processing.

Returns:
true if command execution is finished.

isFinalized

boolean isFinalized()
Command (responsible execution container) reached its final state.

At this state no other state changes are allowed. Command execution container will be removed from a ICommandPipe.

Execution result should be available only in this tsate.

Returns:
true if command is finalized.
See Also:
IExecutionResult


Copyright © 2019. All rights reserved.