Class GenericRScript
- java.lang.Object
-
- org.gcube.dataanalysis.ecoengine.interfaces.StandardLocalExternalAlgorithm
-
- org.gcube.dataanalysis.ecoengine.interfaces.StandardLocalInfraAlgorithm
-
- org.gcube.dataanalysis.executor.rscripts.generic.GenericRScript
-
- All Implemented Interfaces:
org.gcube.dataanalysis.ecoengine.interfaces.AlgorithmDescriptor,org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgent,org.gcube.dataanalysis.ecoengine.interfaces.Transducerer
- Direct Known Subclasses:
KnitrCompiler,TemplateRScripts
public abstract class GenericRScript extends StandardLocalInfraAlgorithm
-
-
Field Summary
Fields Modifier and Type Field Description protected FilecurrentFolderprotected List<String>environmentalvariablesprotected List<String>inputvariablesprotected StringmainScriptNameprotected LinkedHashMap<String,org.gcube.dataanalysis.ecoengine.datatypes.StatisticalType>outputprotected HashMap<String,String>outputValuesprotected List<String>outputvariablesprotected StringpackageURL
-
Constructor Summary
Constructors Constructor Description GenericRScript()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringanalyseContent(String filecontent, String scriptfolder)protected StringgenerateRemoteLogFile(String Rlog)org.gcube.dataanalysis.ecoengine.datatypes.StatisticalTypegetOutput()floatgetStatus()voidinit()protected voidinitVariables()protected voidprocess()protected FilesaveLogFile(String Rlog)protected voidsetInputParameters()voidshutdown()-
Methods inherited from class org.gcube.dataanalysis.ecoengine.interfaces.StandardLocalInfraAlgorithm
sendNotification
-
Methods inherited from class org.gcube.dataanalysis.ecoengine.interfaces.StandardLocalExternalAlgorithm
addBooleanInput, addDoubleInput, addEnumerateInput, addFileInput, addIntegerInput, addOutputString, addRemoteDatabaseInput, addStringInput, compute, getDescription, getInfrastructure, getInputParameter, getInputParameters, getResourceLoad, getResources, log, setConfiguration
-
-
-
-
Field Detail
-
output
protected LinkedHashMap<String,org.gcube.dataanalysis.ecoengine.datatypes.StatisticalType> output
-
currentFolder
protected File currentFolder
-
mainScriptName
protected String mainScriptName
-
packageURL
protected String packageURL
-
-
Method Detail
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfaceorg.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgent- Specified by:
shutdownin classorg.gcube.dataanalysis.ecoengine.interfaces.StandardLocalExternalAlgorithm
-
init
public void init() throws Exception- Specified by:
initin interfaceorg.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgent- Specified by:
initin classorg.gcube.dataanalysis.ecoengine.interfaces.StandardLocalExternalAlgorithm- Throws:
Exception
-
process
protected void process() throws Exception- Specified by:
processin classorg.gcube.dataanalysis.ecoengine.interfaces.StandardLocalExternalAlgorithm- Throws:
Exception
-
generateRemoteLogFile
protected String generateRemoteLogFile(String Rlog) throws Exception
- Throws:
Exception
-
analyseContent
protected String analyseContent(String filecontent, String scriptfolder) throws Exception
- Throws:
Exception
-
initVariables
protected void initVariables()
-
setInputParameters
protected void setInputParameters()
- Specified by:
setInputParametersin classorg.gcube.dataanalysis.ecoengine.interfaces.StandardLocalExternalAlgorithm
-
getOutput
public org.gcube.dataanalysis.ecoengine.datatypes.StatisticalType getOutput()
- Specified by:
getOutputin interfaceorg.gcube.dataanalysis.ecoengine.interfaces.AlgorithmDescriptor- Overrides:
getOutputin classorg.gcube.dataanalysis.ecoengine.interfaces.StandardLocalExternalAlgorithm
-
getStatus
public float getStatus()
- Specified by:
getStatusin interfaceorg.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgent- Overrides:
getStatusin classorg.gcube.dataanalysis.ecoengine.interfaces.StandardLocalExternalAlgorithm
-
-