com.kuka.task
Class TaskFunctionMonitor

java.lang.Object
  extended by com.kuka.task.TaskFunctionMonitor

public final class TaskFunctionMonitor
extends Object

This class allows to create an ITaskFunctionMonitor that can query and await the availability of task functions. If you create a monitor for a given task function, you can check if the providing task is running, or you can wait for the function to become available.

See Also:
ITaskFunctionMonitor

Method Summary
static ITaskFunctionMonitor create(Object taskFunction)
          Returns a monitor for the given task function instance that allows you to query or wait on the availability of the task function (remember that a task function is only available as long as the task that is providing the function is running).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static ITaskFunctionMonitor create(Object taskFunction)
Returns a monitor for the given task function instance that allows you to query or wait on the availability of the task function (remember that a task function is only available as long as the task that is providing the function is running). If the given task function does not implement ITaskFunctionMonitor, this monitor behaves as though the function is always available. Note that task functions returned by the KUKA task manager always implement ITaskFunctionMonitor.

Parameters:
taskFunction - the task function instance for which the monitor should be returned
Returns:
the monitor instance
Throws:
IllegalArgumentException - if the argument is null


Copyright © 2019. All rights reserved.