|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcs290b.project.api.Task
cs290b.project.api.ComposeTask
cs290b.project.tasks.TspComposeImpl
public class TspComposeImpl
Constructor Summary | |
---|---|
TspComposeImpl()
|
Method Summary | |
---|---|
static double |
computeDistance(double city1x,
double city1y,
double city2x,
double city2y)
|
java.lang.Object |
execute(java.lang.Object input)
Default implementation of execute. |
boolean |
executeOnServer()
|
Methods inherited from class cs290b.project.api.ComposeTask |
---|
addInputResult, addInputTask, getInputResult, getInputResults, getInputTasks, ready |
Methods inherited from class cs290b.project.api.Task |
---|
compareTo, compute, getArgIndex, getChildTasks, getCriticalPath, getRunTime, getShared, getSourceServer, getSuccessorId, getTaskId, sendEvent, setArgIndex, setCriticalPath, setRunTime, setShared, setSourceServer, setSuccessorId, setSupport, setTaskId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TspComposeImpl()
Method Detail |
---|
public static double computeDistance(double city1x, double city1y, double city2x, double city2y)
public java.lang.Object execute(java.lang.Object input)
ComposeTask
execute
in class ComposeTask
input
- The shared input set by the client
public boolean executeOnServer()
executeOnServer
in class Task
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |