tasks
Class EuclideanTspMinTask

java.lang.Object
  extended by api.Task
      extended by tasks.EuclideanTspMinTask
All Implemented Interfaces:
TaskInterface, java.io.Serializable

public class EuclideanTspMinTask
extends Task

See Also:
Serialized Form

Method Summary
 Result run(Shared shared)
          Computes the minimum of all of the inputs it is given.
 void setInput(Result r)
          Sets one of the inputs for the the min Task.
 
Methods inherited from class api.Task
getDrainID, getInputCount, getTaskID, setComputer, setShared, setTaskID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setInput

public void setInput(Result r)
Sets one of the inputs for the the min Task.

Specified by:
setInput in interface TaskInterface
Specified by:
setInput in class Task
Parameters:
r - The result object that should be considered.

run

public Result run(Shared shared)
Computes the minimum of all of the inputs it is given.

Specified by:
run in interface TaskInterface
Specified by:
run in class Task
Returns:
A result object that specifies the minimum tour, and associated distance.