|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.calcium.Task<T>
T
- public class Task<T>
This class is the main wrapper class for the objects passed to the Skernel. A regular user should never know that this class exists. Among others, this class: provides a wrapper for the user parameters, holds the intstruction stack for this task, handles the creation and conquer of child tasks (subtasks).
Field Summary | |
---|---|
static int |
DEFAULT_PRIORITY
|
Constructor Summary | |
---|---|
Task()
|
|
Task(T object)
|
Method Summary | |
---|---|
void |
addReadyChild(Task<T> child)
Adds a subtask ready for execution. |
int |
compareTo(Task task)
|
boolean |
equals(java.lang.Object o)
|
boolean |
equals(Task<T> task)
|
java.lang.Exception |
getException()
|
int |
getFamilyId()
|
Task<T> |
getFinishedChild()
|
int |
getId()
|
T |
getObject()
|
int |
getParentId()
|
int |
getPriority()
|
Task<T> |
getReadyChild()
Gets a sub task ready for execution. |
java.util.Vector<Instruction<T>> |
getStack()
Gives a not so shallow copy of the stack. |
StatsImpl |
getStats()
|
int |
getStreamId()
|
boolean |
hasException()
|
boolean |
hasFinishedChild()
|
int |
hashCode()
|
boolean |
hasInstruction()
|
boolean |
hasReadyChildTask()
|
boolean |
isDummy()
|
boolean |
isFinished()
|
boolean |
isReady()
|
boolean |
isRootTask()
|
boolean |
isTainted()
|
void |
markFinishTime()
|
Instruction<T> |
peekInstruction()
|
Instruction<T> |
popInstruction()
|
void |
pushInstruction(Instruction<T> inst)
|
Task<T> |
reBirth(T object)
Makes a new task that represents a rebirth of the current one. |
void |
setDummy()
|
void |
setException(java.lang.Exception exception)
|
boolean |
setFinishedChild(Task<?> task)
|
void |
setObject(T object)
|
void |
setPriority(int newPriority)
|
void |
setStack(java.util.Vector<Instruction<T>> v)
Sets a not so shallow reference to the parameter stack. |
void |
setStreamId(int streamId)
|
void |
setTainted(boolean isTainted)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int DEFAULT_PRIORITY
Constructor Detail |
---|
public Task()
public Task(T object)
Method Detail |
---|
public Task<T> reBirth(T object)
object
- The new object to be hold in this task.
public int compareTo(Task task)
compareTo
in interface java.lang.Comparable<Task>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(Task<T> task)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.util.Vector<Instruction<T>> getStack()
public void setStack(java.util.Vector<Instruction<T>> v)
v
- public int getParentId()
public boolean hasInstruction()
public boolean hasReadyChildTask()
public Instruction<T> popInstruction()
public Instruction<T> peekInstruction()
public void pushInstruction(Instruction<T> inst)
public T getObject()
public void setObject(T object)
public int getId()
public int getPriority()
public void setPriority(int newPriority)
public Task<T> getReadyChild()
public void addReadyChild(Task<T> child)
child
- The sub task.public boolean setFinishedChild(Task<?> task)
public boolean isFinished()
public boolean isReady()
public boolean hasFinishedChild()
public Task<T> getFinishedChild()
public boolean isRootTask()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isDummy()
public void setDummy()
public java.lang.Exception getException()
public void setException(java.lang.Exception exception)
exception
- The exception to set.public boolean hasException()
public int getFamilyId()
public boolean isTainted()
public void setTainted(boolean isTainted)
isTainted
- true sets this task to taintedpublic void markFinishTime()
public StatsImpl getStats()
public int getStreamId()
public void setStreamId(int streamId)
streamId
- Sets the id of the stream that created this task.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |