org.gcube.dataanalysis.ecoengine.interfaces
Class StandardLocalExternalAlgorithm
java.lang.Object
org.gcube.dataanalysis.ecoengine.interfaces.StandardLocalExternalAlgorithm
- All Implemented Interfaces:
- ComputationalAgent, Transducerer
public abstract class StandardLocalExternalAlgorithm
- extends Object
- implements Transducerer
|
Method Summary |
protected void |
addEnumerateInput(Object itemsList,
String name,
String description,
String defaultvalue)
|
protected void |
addNumberInput(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()
|
INFRASTRUCTURE |
getInfrastructure()
|
protected String |
getInputParameter(String paramName)
|
List<StatisticalType> |
getInputParameters()
|
StatisticalType |
getOutput()
|
String |
getResourceLoad()
|
String |
getResources()
|
float |
getStatus()
|
abstract void |
init()
|
protected void |
log(Object message)
|
protected abstract void |
process()
|
void |
setConfiguration(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 AlgorithmConfiguration config
status
protected float status
inputs
protected List<StatisticalType> inputs
resourceManager
protected ResourceFactory resourceManager
outputParameters
public 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)
addNumberInput
protected void addNumberInput(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 ComputationalAgent
- Throws:
Exception
log
protected void log(Object message)
init
public abstract void init()
throws Exception
- Specified by:
init in interface ComputationalAgent
- Throws:
Exception
getDescription
public abstract String getDescription()
- Specified by:
getDescription in interface ComputationalAgent
getInfrastructure
public INFRASTRUCTURE getInfrastructure()
- Specified by:
getInfrastructure in interface ComputationalAgent
getInputParameters
public List<StatisticalType> getInputParameters()
- Specified by:
getInputParameters in interface ComputationalAgent
getInputParameter
protected String getInputParameter(String paramName)
getOutput
public StatisticalType getOutput()
- Specified by:
getOutput in interface ComputationalAgent
getResourceLoad
public String getResourceLoad()
- Specified by:
getResourceLoad in interface ComputationalAgent
getResources
public String getResources()
- Specified by:
getResources in interface ComputationalAgent
getStatus
public float getStatus()
- Specified by:
getStatus in interface ComputationalAgent
process
protected abstract void process()
throws Exception
- Throws:
Exception
setConfiguration
public void setConfiguration(AlgorithmConfiguration config)
- Specified by:
setConfiguration in interface ComputationalAgent
setInputParameters
protected abstract void setInputParameters()
shutdown
public abstract void shutdown()
- Specified by:
shutdown in interface ComputationalAgent
Copyright © 2013. All Rights Reserved.