public abstract class StandardLocalExternalAlgorithm extends Object implements Transducerer
| Modifier and Type | Field and Description |
|---|---|
protected AlgorithmConfiguration |
config |
protected List<StatisticalType> |
inputs |
LinkedHashMap<String,String> |
outputParameters |
protected ResourceFactory |
resourceManager |
protected float |
status |
| Constructor and Description |
|---|
StandardLocalExternalAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDoubleInput(String name,
String description,
String defaultvalue) |
protected void |
addEnumerateInput(Object itemsList,
String name,
String description,
String defaultvalue) |
protected void |
addIntegerInput(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() |
protected AlgorithmConfiguration config
protected float status
protected List<StatisticalType> inputs
protected ResourceFactory resourceManager
public LinkedHashMap<String,String> outputParameters
protected void addEnumerateInput(Object itemsList, String name, String description, String defaultvalue)
protected void addRemoteDatabaseInput(String runtimeResourceName, String urlParameterName, String userParameterName, String passwordParameterName, String driverParameterName, String dialectParameterName)
protected void addIntegerInput(String name, String description, String defaultvalue)
public void compute()
throws Exception
compute in interface ComputationalAgentExceptionprotected void log(Object message)
public abstract void init()
throws Exception
init in interface ComputationalAgentExceptionpublic abstract String getDescription()
getDescription in interface ComputationalAgentpublic INFRASTRUCTURE getInfrastructure()
getInfrastructure in interface ComputationalAgentpublic List<StatisticalType> getInputParameters()
getInputParameters in interface ComputationalAgentpublic StatisticalType getOutput()
getOutput in interface ComputationalAgentpublic String getResourceLoad()
getResourceLoad in interface ComputationalAgentpublic String getResources()
getResources in interface ComputationalAgentpublic float getStatus()
getStatus in interface ComputationalAgentpublic void setConfiguration(AlgorithmConfiguration config)
setConfiguration in interface ComputationalAgentprotected abstract void setInputParameters()
public abstract void shutdown()
shutdown in interface ComputationalAgentCopyright © 2016. All Rights Reserved.