api
Class Result

java.lang.Object
  extended by api.Result
All Implemented Interfaces:
ResultInterface, java.io.Serializable
Direct Known Subclasses:
EuclideanTspResult, SudokuResult

public abstract class Result
extends java.lang.Object
implements ResultInterface

Abstract class that describes a result from a task

Author:
Diana Abbas, Ryan Neal
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface api.ResultInterface
serialVersionUID
 
Constructor Summary
Result()
           
 
Method Summary
 int getDrainID()
          Gets the Task ID.
 long getRunTime()
          Gets the time it took.
abstract  java.lang.Object getValue()
          Gets the Value associated with the particular Result.
 void setRunTime(long rt)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Result

public Result()
Method Detail

getValue

public abstract java.lang.Object getValue()
Gets the Value associated with the particular Result. It is problem specific. So, every subclass HAS to implement it.

Specified by:
getValue in interface ResultInterface
Returns:
The resulting array telling the order that should be taken through the original path.

getRunTime

public long getRunTime()
Gets the time it took.

Specified by:
getRunTime in interface ResultInterface
Returns:
The time it took to find the answer.

getDrainID

public int getDrainID()
Gets the Task ID.

Specified by:
getDrainID in interface ResultInterface
Returns:
The id of the associated Task.

setRunTime

public void setRunTime(long rt)