pt.runtime
Class TaskInfo
java.lang.Object
pt.runtime.TaskInfo
public class TaskInfo
- extends java.lang.Object
Used to store certain information in order to invoke the task.. (i.e. before invoking the task.. therefore
information after the task has been invoked (eg return value) are stored in the TaskID
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskInfo
public TaskInfo()
hasAnySlots
public boolean hasAnySlots()
addDependsOn
public void addDependsOn(TaskID otherTask)
- Adds a dependency on the given task. If it is part of a pipeline,
automatically make this task also a pipeline stage.
- Parameters:
otherTask
-
isPipeline
public boolean isPipeline()
getParameters
public java.lang.Object[] getParameters()
getTaskIdArgIndexes
public int[] getTaskIdArgIndexes()
getQueueArgIndexes
public int[] getQueueArgIndexes()
getInstance
public java.lang.Object getInstance()
getMethod
public java.lang.reflect.Method getMethod()
setMethod
public void setMethod(java.lang.reflect.Method method)
setIsPipeline
public void setIsPipeline(boolean isPipeline)
setParameters
public void setParameters(java.lang.Object... parameters)
setTaskIdArgIndexes
public void setTaskIdArgIndexes(int... indexes)
setQueueArgIndexes
public void setQueueArgIndexes(int... indexes)
setInstance
public void setInstance(java.lang.Object instance)
getRegisteringThread
public java.lang.Thread getRegisteringThread()
setRegisteringThread
public java.lang.Thread setRegisteringThread()
setTaskIDForSlotsAndHandlers
public void setTaskIDForSlotsAndHandlers(TaskID taskID)
addExceptionHandler
public void addExceptionHandler(java.lang.Class exceptionClass,
Slot handler)
- This method should be used in the order that the exception handlers are to be considered later on
- Parameters:
exceptionClass
- handler
-
getExceptionHandler
public Slot getExceptionHandler(java.lang.Class occuredException)
addInterSlotToNotify
public void addInterSlotToNotify(Slot slot)
addSlotToNotify
public void addSlotToNotify(Slot slot)
getInterSlotsToNotify
public java.util.ArrayList<Slot> getInterSlotsToNotify()
getSlotsToNotify
public java.util.ArrayList<Slot> getSlotsToNotify()
getDependences
public java.util.ArrayList<TaskID> getDependences()
isInteractive
public boolean isInteractive()
setInteractive
public void setInteractive(boolean isInteractive)
hasRegisteredHandlers
public boolean hasRegisteredHandlers()