rinde.ecj.DefaultResult 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.ecj;
import rinde.jppf.GPComputationResult;
/**
* @author Rinde van Lon
*
*/
public class DefaultResult implements GPComputationResult {
protected final float fitness;
protected final String taskDataId;
public DefaultResult(float fit, String id) {
fitness = fit;
taskDataId = id;
}
public float getFitness() {
return fitness;
}
public String getTaskDataId() {
return taskDataId;
}
}