org.gcube.dataanalysis
Class StandardLocalExternalAlgorithm
java.lang.Object
org.gcube.dataanalysis.StandardLocalExternalAlgorithm
- All Implemented Interfaces:
- org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgent, org.gcube.dataanalysis.ecoengine.interfaces.Transducerer
- Direct Known Subclasses:
- TaxaMatchTransducer
public abstract class StandardLocalExternalAlgorithm
- extends Object
- implements org.gcube.dataanalysis.ecoengine.interfaces.Transducerer
|
Method Summary |
protected void |
addEnumerateInput(Object itemsList,
String name,
String description,
String defaultvalue)
|
protected void |
addOutputString(String name,
String value)
|
protected void |
addRemoteDatabaseInput(String runtimeResourceName,
String urlParameterName,
String userParameterName,
String passwordParameterName,
String driverParameterName,
String dialectParameterName)
|
protected void |
addStringInput(String name,
String description,
String defaultvalue)
|
void |
compute()
|
abstract String |
getDescription()
|
org.gcube.dataanalysis.ecoengine.configuration.INFRASTRUCTURE |
getInfrastructure()
|
protected String |
getInputParameter(String paramName)
|
List<org.gcube.dataanalysis.ecoengine.datatypes.StatisticalType> |
getInputParameters()
|
org.gcube.dataanalysis.ecoengine.datatypes.StatisticalType |
getOutput()
|
String |
getResourceLoad()
|
String |
getResources()
|
float |
getStatus()
|
abstract void |
init()
|
protected void |
log(Object message)
|
protected abstract void |
process()
|
void |
setConfiguration(org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration config)
|
protected abstract void |
setInputParameters()
|
abstract void |
shutdown()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
config
protected org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration config
status
protected float status
inputs
protected List<org.gcube.dataanalysis.ecoengine.datatypes.StatisticalType> inputs
resourceManager
protected org.gcube.dataanalysis.ecoengine.utils.ResourceFactory resourceManager
outputParameters
protected LinkedHashMap<String,String> outputParameters
StandardLocalExternalAlgorithm
public StandardLocalExternalAlgorithm()
addEnumerateInput
protected void addEnumerateInput(Object itemsList,
String name,
String description,
String defaultvalue)
addRemoteDatabaseInput
protected void addRemoteDatabaseInput(String runtimeResourceName,
String urlParameterName,
String userParameterName,
String passwordParameterName,
String driverParameterName,
String dialectParameterName)
addStringInput
protected void addStringInput(String name,
String description,
String defaultvalue)
addOutputString
protected void addOutputString(String name,
String value)
compute
public void compute()
throws Exception
- Specified by:
compute in interface org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgent
- Throws:
Exception
log
protected void log(Object message)
init
public abstract void init()
throws Exception
- Specified by:
init in interface org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgent
- Throws:
Exception
getDescription
public abstract String getDescription()
- Specified by:
getDescription in interface org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgent
getInfrastructure
public org.gcube.dataanalysis.ecoengine.configuration.INFRASTRUCTURE getInfrastructure()
- Specified by:
getInfrastructure in interface org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgent
getInputParameters
public List<org.gcube.dataanalysis.ecoengine.datatypes.StatisticalType> getInputParameters()
- Specified by:
getInputParameters in interface org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgent
getInputParameter
protected String getInputParameter(String paramName)
getOutput
public org.gcube.dataanalysis.ecoengine.datatypes.StatisticalType getOutput()
- Specified by:
getOutput in interface org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgent
getResourceLoad
public String getResourceLoad()
- Specified by:
getResourceLoad in interface org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgent
getResources
public String getResources()
- Specified by:
getResources in interface org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgent
getStatus
public float getStatus()
- Specified by:
getStatus in interface org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgent
process
protected abstract void process()
throws Exception
- Throws:
Exception
setConfiguration
public void setConfiguration(org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration config)
- Specified by:
setConfiguration in interface org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgent
setInputParameters
protected abstract void setInputParameters()
shutdown
public abstract void shutdown()
- Specified by:
shutdown in interface org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgent
Copyright © 2013. All Rights Reserved.