added debug strings
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/EcologicalEngine@76713 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d928073a6c
commit
09e73c8d87
|
@ -108,9 +108,14 @@ public abstract class DataAnalysis implements Evaluator{
|
||||||
|
|
||||||
|
|
||||||
public void init() throws Exception {
|
public void init() throws Exception {
|
||||||
|
init(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void init(boolean initRapidMiner) throws Exception {
|
||||||
AnalysisLogger.setLogger(config.getConfigPath() + AlgorithmConfiguration.defaultLoggerFile);
|
AnalysisLogger.setLogger(config.getConfigPath() + AlgorithmConfiguration.defaultLoggerFile);
|
||||||
// init db connection
|
// init db connection
|
||||||
connection = AlgorithmConfiguration.getConnectionFromConfig(config);
|
connection = AlgorithmConfiguration.getConnectionFromConfig(config);
|
||||||
|
if (initRapidMiner)
|
||||||
config.initRapidMiner();
|
config.initRapidMiner();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ public abstract class StandardLocalExternalAlgorithm implements Transducerer {
|
||||||
protected float status = 0;
|
protected float status = 0;
|
||||||
protected List<StatisticalType> inputs = new ArrayList<StatisticalType>();
|
protected List<StatisticalType> inputs = new ArrayList<StatisticalType>();
|
||||||
protected ResourceFactory resourceManager;
|
protected ResourceFactory resourceManager;
|
||||||
protected LinkedHashMap<String, String> outputParameters = new LinkedHashMap<String, String>();
|
public LinkedHashMap<String, String> outputParameters = new LinkedHashMap<String, String>();
|
||||||
|
|
||||||
|
|
||||||
protected void addEnumerateInput(Object itemsList, String name, String description, String defaultvalue) {
|
protected void addEnumerateInput(Object itemsList, String name, String description, String defaultvalue) {
|
||||||
|
@ -42,6 +42,10 @@ public abstract class StandardLocalExternalAlgorithm implements Transducerer {
|
||||||
inputs.add(new PrimitiveType(String.class.getName(), null, PrimitiveTypes.STRING, name, description, defaultvalue));
|
inputs.add(new PrimitiveType(String.class.getName(), null, PrimitiveTypes.STRING, name, description, defaultvalue));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void addNumberInput(String name, String description, String defaultvalue) {
|
||||||
|
inputs.add(new PrimitiveType(Integer.class.getName(), null, PrimitiveTypes.NUMBER, name,description,defaultvalue));
|
||||||
|
}
|
||||||
|
|
||||||
protected void addOutputString(String name, String value) {
|
protected void addOutputString(String name, String value) {
|
||||||
outputParameters.put(name, value);
|
outputParameters.put(name, value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue