This commit is contained in:
Gianpaolo Coro 2012-06-22 16:04:46 +00:00
parent b3f4a9a959
commit 2e8fd2d1dd
1 changed files with 16 additions and 9 deletions

View File

@ -4,24 +4,31 @@ import org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration;
public interface SpatialProbabilityDistributionNode extends SpatialProbabilityDistribution { public interface SpatialProbabilityDistributionNode extends SpatialProbabilityDistribution {
//initialization of the distribution model //initialization of ta single node
public void initSingleNode(AlgorithmConfiguration config); public void initSingleNode(AlgorithmConfiguration config);
//preprocessing after the whole calculation
public void postProcess();
//get the internal processing status for the single step calculation //get the internal processing status for the single step calculation
public float getInternalStatus(); public float getInternalStatus();
public int executeNode(int cellOrdinal, int chunksize, int speciesOrdinal, int speciesChunkSize, String pathToFiles, String logfile); //execute a single node
public int executeNode(int cellStarIndex, int numberOfCellsToProcess, int speciesStartIndex, int numberOfSpeciesToProcess, String sandboxFolder, String logfileNameToProduce);
// An initialization phase in which the inputs are initialized
public void setup(AlgorithmConfiguration config) throws Exception; public void setup(AlgorithmConfiguration config) throws Exception;
//get overall number of species to process
public int getNumberOfSpecies(); public int getNumberOfSpecies();
//get overall number of geographical information to process
public int getNumberOfGeoInfo(); public int getNumberOfGeoInfo();
public int getOverallProcessedInfo(); //get overall number of processed species
public int getNumberOfProcessedSpecies();
//stop the sexecution of the node
public void stop(); public void stop();
//prostprocess after the whole calculation : reduce operation
public void postProcess();
} }