|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.branchnbound.core.Task
This is the root class of all our API Task
classes.
Field Summary | |
protected java.lang.Object |
bestKnownSolution
|
protected Result |
initLowerBound
|
protected Result |
initUpperBound
|
protected static org.apache.log4j.Logger |
logger
|
protected Worker |
worker
|
Constructor Summary | |
Task()
The no arg constructor for ProActive. |
Method Summary | |
int |
compareTo(java.lang.Object arg)
|
abstract Result |
execute()
|
Result |
gather(Result[] results)
As defined by the user, it returns the best results. |
void |
immediateTerminate()
Terminate this task. |
abstract void |
initLowerBound()
Compute for the first time the problem lower bound. |
abstract void |
initUpperBound()
Compute for the first time the problem upper bound. |
void |
setBestKnownSolution(java.lang.Object newBestKnownResult)
***FOR INTERNAL USE ONLY*** Push the best current solution which is broadcasted in this task. |
void |
setWorker(Worker worker)
Associate a worker to this task. |
abstract java.util.Vector |
split()
Split this task in sub-tasks. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger logger
protected Result initLowerBound
protected Result initUpperBound
protected Worker worker
protected java.lang.Object bestKnownSolution
Constructor Detail |
public Task()
Method Detail |
public abstract Result execute()
public abstract java.util.Vector split()
public Result gather(Result[] results)
results
- an array of results.
null
if no results was found.public abstract void initLowerBound()
public abstract void initUpperBound()
public void setWorker(Worker worker)
worker
- A ProActive Stub on the worker.public int compareTo(java.lang.Object arg)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(java.lang.Object)
public void setBestKnownSolution(java.lang.Object newBestKnownResult)
***FOR INTERNAL USE ONLY***
Push the best current solution which is broadcasted in this task.
newBestKnownResult
- the best current solution.public void immediateTerminate()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |