|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectapi.Task
public abstract class Task
Abstract class that describes the system enforced specifications of a task.
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
Task()
|
|
| Method Summary | |
|---|---|
int |
getDrainID()
Gets the drainID which specifies where the result is intended to go. |
int |
getInputCount()
Tells the number of inputs still pending in the for the Task. |
int |
getTaskID()
Gets the taskID which specifies the id of this task. |
abstract Result |
run(Shared shared)
Empty function. |
void |
setComputer(Computer computer)
Tells the task what machine it is executing on. |
abstract void |
setInput(Result r)
Empty function. |
void |
setShared(Shared proposedShared)
Sets the task's shared object, then update the computer with the new shared object |
void |
setTaskID(int tID)
Sets the ID of the task. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public Task()
| Method Detail |
|---|
public int getTaskID()
getTaskID in interface TaskInterfacepublic int getDrainID()
getDrainID in interface TaskInterfacepublic int getInputCount()
getInputCount in interface TaskInterfacepublic void setComputer(Computer computer)
setComputer in interface TaskInterfacecomputer - The computer that the task is executing on.public void setTaskID(int tID)
tID - public void setShared(Shared proposedShared)
proposedShared - public abstract void setInput(Result r)
setInput in interface TaskInterfacer - The Result that is a partial solution.public abstract Result run(Shared shared)
run in interface TaskInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||