|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapi.Task
tasks.TSPRoot
public class TSPRoot
Initial TSP task class. Generates TSPTasks that start their tour at city 0.
Constructor Summary | |
---|---|
TSPRoot(int numCities,
double[][] coords)
Constructor for TSPRoot class |
Method Summary | |
---|---|
Result |
execute()
Execute method for TSPRoot. |
boolean |
executeOnServer()
Method for checking whether this task should execute on the server |
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 TSPRoot(int numCities, double[][] coords)
coords
- numCities
- the number of citiesMethod 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 |