com.kuka.roboticsAPI.controllerModel
Interface IPausableExecutionService

All Superinterfaces:
IExecutionServicePaused
All Known Implementing Classes:
SunriseExecutionService

public interface IPausableExecutionService
extends IExecutionServicePaused

Interface for an ExecutionService that can be paused.


Method Summary
 void addExecutionListener(IExecutionListener listener)
          Adds the specified execution event listener.
 void cancelPause()
          Cancels the pause state and resets the execution service.
 IRecovery getRecovery()
          Gets the recovery information to determine whether recovery is necessary to resume an application and then yes, how to recover.
 void removeExecutionListener(IExecutionListener listener)
          Removes the specified execution event listener.
 boolean resumeExecution(ResumeMode mode)
          Resumes the paused execution.
 void startPause()
          Requests pausing of the execution.
 
Methods inherited from interface com.kuka.roboticsAPI.controllerModel.IExecutionServicePaused
isPaused, isPausedAndStopped
 

Method Detail

cancelPause

void cancelPause()
Cancels the pause state and resets the execution service.

This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

startPause

void startPause()
Requests pausing of the execution.

This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

addExecutionListener

void addExecutionListener(IExecutionListener listener)
Adds the specified execution event listener.

Parameters:
listener - the listener for the execution events.
Throws:
IllegalArgumentException - if listener is null or the same listener is already registered by the execution service

removeExecutionListener

void removeExecutionListener(IExecutionListener listener)
Removes the specified execution event listener.

Parameters:
listener - execution event listener to remove.

getRecovery

IRecovery getRecovery()
Gets the recovery information to determine whether recovery is necessary to resume an application and then yes, how to recover.

Returns:
the recovery information

resumeExecution

boolean resumeExecution(ResumeMode mode)
Resumes the paused execution.

Parameters:
mode - specifies how execution should be resumed
Returns:
true, if execution could be resumed, false otherwise
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.


Copyright © 2019. All rights reserved.