|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.ControllerService
com.kuka.roboticsAPI.controllerModel.ExecutionService
public abstract class ExecutionService
The execution service is the part of a controller which takes commands and executes them. Also it must provide the functionality to cancel a given command.
| Constructor Summary | |
|---|---|
ExecutionService()
|
|
| Method Summary | |
|---|---|
abstract ICommandContainer |
beginExecution(IControllerCommand command,
IContainerStateListener listener)
The execute method should execute the given container in an asynchronous manner. |
abstract void |
cancel(ICommandContainer container)
Cancels the given command in the given container. |
abstract void |
cancelAll()
Cancels all pending commands for this controller. |
protected void |
dispose()
Disposes this service. |
ICommandContainer |
execute(IControllerCommand command,
IContainerStateListener listener)
The execute method should execute the given container in a synchronous manner. |
protected ExecutorService |
getContainerCleanupWorker()
Returns the container cleanup worker. |
protected ExecutorService |
getContainerEventWorker()
Returns the container event worker. |
protected void |
initialize()
Initializes this service. |
String |
toString()
|
| Methods inherited from class com.kuka.roboticsAPI.controllerModel.ControllerService |
|---|
getContext, getController |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExecutionService()
| Method Detail |
|---|
protected ExecutorService getContainerEventWorker()
This worker can be used by every execution container to throw its events.
protected ExecutorService getContainerCleanupWorker()
This worker can be used by every execution container to perform cleanup actions.
protected void initialize()
ControllerServicePlease note that when the method is called, the controller of the service is not yet initialized. This means that there are no guarantees that the controller is operable.
initialize in class ControllerServiceprotected void dispose()
ControllerService
dispose in class ControllerService
public abstract ICommandContainer beginExecution(IControllerCommand command,
IContainerStateListener listener)
command - The command to be executed. null is not allowed.listener - The listener which will be called when the container state changes. May be null.
public ICommandContainer execute(IControllerCommand command,
IContainerStateListener listener)
command - The command to be executed. null is not allowed.listener - The listener which will be called when the container state changes. May be null.
public abstract void cancel(ICommandContainer container)
container - The container to cancel.public abstract void cancelAll()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||