rinde.jppf.ComputationTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rinecj Show documentation
Show all versions of rinecj Show documentation
A wrapper for ECJ which simplifies configuration of genetic programming.
/**
*
*/
package rinde.jppf;
import org.jppf.server.protocol.JPPFTask;
/**
* @author Rinde van Lon
*
*/
// TODO investigate wether the second type parameter can be dropped (the data)
// storing data in any kind of format should be entirely left to subclasses
public abstract class ComputationTask extends JPPFTask {
protected final C taskData;
public ComputationTask(C data) {
taskData = data;
}
public C getTaskData() {
return taskData;
}
public R getComputationResult() {
return (R) getResult();
}
}