All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rinde.jppf.ComputationTask Maven / Gradle / Ivy

There is a newer version: 0.3.0
Show newest version
/**
 * 
 */
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();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy