|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapi.Task
api.Successor
tasks.TSPMin
public class TSPMin
TSPMin class
Constructor Summary | |
---|---|
TSPMin(TaskId taskId,
TaskId successorId,
int successorInputIndex,
int inputCount,
double[][] coords)
Constructor for TSPMin class |
Method Summary | |
---|---|
Result |
execute()
Finds the minimum distance path among the task inputs |
boolean |
executeOnServer()
Method for checking whether this task should execute on the server |
Methods inherited from class api.Successor |
---|
getInput, getInputSize, hasAllInput, setInput |
Methods inherited from class api.Task |
---|
compareTo, getShared, getSuccessorId, getSuccessorInputIndex, getTaskId, sendEvent, setComputer, updateShared |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TSPMin(TaskId taskId, TaskId successorId, int successorInputIndex, int inputCount, double[][] coords)
coords
- taskId
- the task idsuccessorId
- the successor task idsuccessorInputIndex
- the input index of the successorinputCount
- the number of inputs to the min taskMethod Detail |
---|
public boolean executeOnServer()
Task
executeOnServer
in class Task
public Result execute()
execute
in class Task
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |