|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.concurrencyModel.ParallelTask
public abstract class ParallelTask
A ParallelTAsk runs within a doParallel call. It performs a parallel action to other parallel tasks called in the same doParallel call.
| Constructor Summary | |
|---|---|
protected |
ParallelTask()
Creates a new parallel task. |
protected |
ParallelTask(boolean startImmediately)
Creates a new parallel task. |
protected |
ParallelTask(int priority)
Creates a new parallel task. |
protected |
ParallelTask(int priority,
boolean startImmediately)
Creates a new parallel task. |
| Method Summary | |
|---|---|
abstract void |
run()
Runs the parallel task. |
void |
waitForFinished()
Blocks the calling thread until this parallel task is finished. |
void |
waitForFinished(long timeout,
TimeUnit unit)
Blocks the calling thread until this parallel task is finished or a timeout occured. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ParallelTask()
protected ParallelTask(int priority)
priority - The priority of the task. Must be between 1 and 10.protected ParallelTask(boolean startImmediately)
startImmediately - Indicates if the parallel task starts as soon as possible or
if it will start nearly at the same time like all other
parallel tasks defined with this task.
protected ParallelTask(int priority,
boolean startImmediately)
priority - The priority of the task. Must be between 1 and 10.startImmediately - Indicates if the parallel task starts as soon as possible or
if it will start nearly at the same time like all other
parallel tasks defined with this task.| Method Detail |
|---|
public abstract void run()
run in interface Runnablepublic final void waitForFinished()
public final void waitForFinished(long timeout,
TimeUnit unit)
timeout - The timeout.unit - The time unit.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||