Introduced ComputationalAgent interface
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/EcologicalEngine@49705 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7841111d2d
commit
31084cdd4f
|
@ -0,0 +1,21 @@
|
|||
package org.gcube.dataanalysis.ecoengine.interfaces;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import org.gcube.dataanalysis.ecoengine.configuration.WEIGHT;
|
||||
import org.gcube.dataanalysis.ecoengine.utils.VarCouple;
|
||||
|
||||
public interface ComputationalAgent {
|
||||
|
||||
//set the input parameters for this generator
|
||||
public HashMap<String, VarCouple> getInputParameters();
|
||||
|
||||
public String getResourceLoad();
|
||||
|
||||
public String getResources();
|
||||
|
||||
public float getStatus();
|
||||
|
||||
//gets the weight of the generator: according to this the generator will be placed in the execution order
|
||||
public WEIGHT getWeight();
|
||||
}
|
|
@ -1,24 +1,16 @@
|
|||
package org.gcube.dataanalysis.ecoengine.interfaces;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import org.gcube.dataanalysis.ecoengine.configuration.ALG_PROPS;
|
||||
import org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration;
|
||||
import org.gcube.dataanalysis.ecoengine.configuration.WEIGHT;
|
||||
import org.gcube.dataanalysis.ecoengine.utils.VarCouple;
|
||||
|
||||
public interface Generator {
|
||||
public interface Generator extends ComputationalAgent{
|
||||
|
||||
public ALG_PROPS[] getSupportedAlgorithms();
|
||||
|
||||
//set the input parameters for this generator
|
||||
public HashMap<String, VarCouple> getInputParameters();
|
||||
|
||||
//gets the weight of the generator: according to this the generator will be placed in the execution order
|
||||
public WEIGHT getWeight();
|
||||
|
||||
public float getStatus();
|
||||
|
||||
public void init();
|
||||
|
||||
public void setConfiguration(AlgorithmConfiguration config);
|
||||
|
@ -27,10 +19,6 @@ public interface Generator {
|
|||
|
||||
public void stopProcess();
|
||||
|
||||
public String getResourceLoad();
|
||||
|
||||
public String getResources();
|
||||
|
||||
public String getLoad();
|
||||
|
||||
public void generate() throws Exception;
|
||||
|
|
|
@ -1,20 +1,13 @@
|
|||
package org.gcube.dataanalysis.ecoengine.interfaces;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import org.gcube.dataanalysis.ecoengine.configuration.ALG_PROPS;
|
||||
import org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration;
|
||||
import org.gcube.dataanalysis.ecoengine.configuration.WEIGHT;
|
||||
import org.gcube.dataanalysis.ecoengine.utils.VarCouple;
|
||||
|
||||
public interface Modeler {
|
||||
|
||||
public interface Modeler extends ComputationalAgent{
|
||||
|
||||
public ALG_PROPS[] getSupportedModels();
|
||||
|
||||
//set the input parameters for this generator
|
||||
public HashMap<String, VarCouple> getInputParameters();
|
||||
|
||||
//gets the weight of the generator: according to this the generator will be placed in the execution order
|
||||
public WEIGHT getWeight();
|
||||
|
||||
|
@ -24,12 +17,6 @@ public interface Modeler {
|
|||
|
||||
public void model(AlgorithmConfiguration Input);
|
||||
|
||||
public String getResourceLoad();
|
||||
|
||||
public String getResources();
|
||||
|
||||
public float getStatus();
|
||||
|
||||
public void stop();
|
||||
|
||||
//gets the class name of the model
|
||||
|
|
Loading…
Reference in New Issue