|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.task.RoboticsAPITask
public abstract class RoboticsAPITask
Base class for RoboticsAPI tasks.
Provides the most common tools for usage and better integration in the KUKA framework.
| Constructor Summary | |
|---|---|
RoboticsAPITask()
|
|
| Method Summary | |
|---|---|
void |
dispose()
Will be called when the task is about to be disposed, for example if the task is being asked to stop. |
void |
initialize()
Will be called when the task is initialized. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.kuka.task.IRoboticsAPITask |
|---|
run |
| Constructor Detail |
|---|
public RoboticsAPITask()
| Method Detail |
|---|
public void initialize()
throws Exception
IRoboticsAPITask
initialize in interface IRoboticsAPITaskException - any exception. A task is not forced to catch exceptions if it doesn't want to handle it.
public void dispose()
throws Exception
IRoboticsAPITaskThis method will be called from a separate thread, and may be called while the task is still initializing or running in a thread parallel to the dispose thread.
The implementation must close all resources that the application has opened, and it must signal all other application threads that might still run that they should stop immediately.
The thread calling this method might get interrupted, in which case the implementation should exit this method immediately.
The implementation of this method must be thread safe with respect to the other methods in this interface.
dispose in interface IRoboticsAPITaskException - any exception. A task is not forced to catch exceptions if it doesn't want to handle it. Take care
however that you properly close any tasks and resources of your application, even if an exception is
thrown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||