public abstract class GenericRScript extends StandardLocalInfraAlgorithm
| Modifier and Type | Field and Description |
|---|---|
protected File |
currentFolder |
protected List<String> |
environmentalvariables |
protected List<String> |
inputvariables |
protected String |
mainScriptName |
protected LinkedHashMap<String,org.gcube.dataanalysis.ecoengine.datatypes.StatisticalType> |
output |
protected HashMap<String,String> |
outputValues |
protected List<String> |
outputvariables |
protected String |
packageURL |
| Constructor and Description |
|---|
GenericRScript() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
analyseContent(String filecontent,
String scriptfolder) |
protected String |
generateRemoteLogFile(String Rlog) |
org.gcube.dataanalysis.ecoengine.datatypes.StatisticalType |
getOutput() |
float |
getStatus() |
void |
init() |
protected void |
initVariables() |
protected void |
process() |
protected File |
saveLogFile(String Rlog) |
protected void |
setInputParameters() |
void |
shutdown() |
sendNotificationaddBooleanInput, addDoubleInput, addEnumerateInput, addFileInput, addIntegerInput, addOutputString, addRemoteDatabaseInput, addStringInput, compute, getDescription, getInfrastructure, getInputParameter, getInputParameters, getResourceLoad, getResources, log, setConfigurationprotected LinkedHashMap<String,org.gcube.dataanalysis.ecoengine.datatypes.StatisticalType> output
protected File currentFolder
protected String mainScriptName
protected String packageURL
public void shutdown()
shutdown in interface org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgentshutdown in class org.gcube.dataanalysis.ecoengine.interfaces.StandardLocalExternalAlgorithmpublic void init()
throws Exception
init in interface org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgentinit in class org.gcube.dataanalysis.ecoengine.interfaces.StandardLocalExternalAlgorithmExceptionprotected void process()
throws Exception
process in class org.gcube.dataanalysis.ecoengine.interfaces.StandardLocalExternalAlgorithmExceptionprotected String generateRemoteLogFile(String Rlog) throws Exception
Exceptionprotected String analyseContent(String filecontent, String scriptfolder) throws Exception
Exceptionprotected void initVariables()
protected void setInputParameters()
setInputParameters in class org.gcube.dataanalysis.ecoengine.interfaces.StandardLocalExternalAlgorithmpublic org.gcube.dataanalysis.ecoengine.datatypes.StatisticalType getOutput()
getOutput in interface org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgentgetOutput in class org.gcube.dataanalysis.ecoengine.interfaces.StandardLocalExternalAlgorithmpublic float getStatus()
getStatus in interface org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgentgetStatus in class org.gcube.dataanalysis.ecoengine.interfaces.StandardLocalExternalAlgorithmCopyright © 2019. All Rights Reserved.