pt.runtime
Class TaskInfo

java.lang.Object
  extended by 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


Constructor Summary
TaskInfo()
           
 
Method Summary
 void addDependsOn(TaskID otherTask)
          Adds a dependency on the given task.
 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
 void addInterSlotToNotify(Slot slot)
           
 void addSlotToNotify(Slot slot)
           
 java.util.ArrayList<TaskID> getDependences()
           
 Slot getExceptionHandler(java.lang.Class occuredException)
           
 java.lang.Object getInstance()
           
 java.util.ArrayList<Slot> getInterSlotsToNotify()
           
 java.lang.reflect.Method getMethod()
           
 java.lang.Object[] getParameters()
           
 int[] getQueueArgIndexes()
           
 java.lang.Thread getRegisteringThread()
           
 java.util.ArrayList<Slot> getSlotsToNotify()
           
 int[] getTaskIdArgIndexes()
           
 boolean hasAnySlots()
           
 boolean hasRegisteredHandlers()
           
 boolean isInteractive()
           
 boolean isPipeline()
           
 void setInstance(java.lang.Object instance)
           
 void setInteractive(boolean isInteractive)
           
 void setIsPipeline(boolean isPipeline)
           
 void setMethod(java.lang.reflect.Method method)
           
 void setParameters(java.lang.Object... parameters)
           
 void setQueueArgIndexes(int... indexes)
           
 java.lang.Thread setRegisteringThread()
           
 void setTaskIdArgIndexes(int... indexes)
           
 void setTaskIDForSlotsAndHandlers(TaskID taskID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskInfo

public TaskInfo()
Method Detail

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()