Class BionymWorkflow
- java.lang.Object
-
- org.gcube.dataanalysis.ecoengine.interfaces.ActorNode
-
- org.gcube.dataanalysis.executor.nodes.transducers.bionym.BionymWorkflow
-
- All Implemented Interfaces:
org.gcube.dataanalysis.ecoengine.interfaces.AlgorithmDescriptor,org.gcube.dataanalysis.ecoengine.interfaces.GenericAlgorithm
public class BionymWorkflow extends org.gcube.dataanalysis.ecoengine.interfaces.ActorNode
-
-
Field Summary
Fields Modifier and Type Field Description protected org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfigurationcurrentconfigprotected org.hibernate.SessionFactorydbconnectionstatic StringdestinationTableLablestatic StringdestinationTableParamstatic StringdoPreprocessParamstatic StringmaxMatchesParamstatic StringoriginTableParamstatic StringparserParamintprevbroadcastTimePeriodintprevmaxMessagesintprevmaxNumberOfStagesstatic StringpruningThresholdParamstatic StringrawnamesColumnParamstatic StringreferenceParamstatic StringsoundexweightParam
-
Constructor Summary
Constructors Constructor Description BionymWorkflow()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringBufferexecuteBionymWorkflow(String rawspeciesname, String sandboxfolder, String preprocessor, boolean[] enablematchers, float soundexweightF, int maxResults, float pruningThreshold)intexecuteNode(int leftStartIndex, int numberOfLeftElementsToProcess, int rightStartIndex, int numberOfRightElementsToProcess, boolean duplicate, String sandboxFolder, String nodeConfigurationFileObject, String logfileNameToProduce)voidfilterMatchedTuples(List<org.gcube.dataanalysis.ecoengine.utils.Tuple<String>> tuples)StringgetDescription()List<org.gcube.dataanalysis.ecoengine.datatypes.StatisticalType>getInputParameters()floatgetInternalStatus()StringgetName()intgetNumberOfLeftElements()intgetNumberOfRightElements()org.gcube.dataanalysis.ecoengine.datatypes.StatisticalTypegetOutput()org.gcube.dataanalysis.ecoengine.configuration.ALG_PROPS[]getProperties()voidinitSingleNode(org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration config)static voidmainTEST(String[] args)voidpostProcess(boolean manageDuplicates, boolean manageFault)voidsetup(org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration config)voidstop()
-
-
-
Field Detail
-
currentconfig
protected org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration currentconfig
-
dbconnection
protected org.hibernate.SessionFactory dbconnection
-
prevbroadcastTimePeriod
public int prevbroadcastTimePeriod
-
prevmaxNumberOfStages
public int prevmaxNumberOfStages
-
prevmaxMessages
public int prevmaxMessages
-
destinationTableParam
public static String destinationTableParam
-
destinationTableLable
public static String destinationTableLable
-
originTableParam
public static String originTableParam
-
rawnamesColumnParam
public static String rawnamesColumnParam
-
parserParam
public static String parserParam
-
referenceParam
public static String referenceParam
-
soundexweightParam
public static String soundexweightParam
-
doPreprocessParam
public static String doPreprocessParam
-
maxMatchesParam
public static String maxMatchesParam
-
pruningThresholdParam
public static String pruningThresholdParam
-
-
Method Detail
-
getProperties
public org.gcube.dataanalysis.ecoengine.configuration.ALG_PROPS[] getProperties()
-
getName
public String getName()
-
getDescription
public String getDescription()
-
getInputParameters
public List<org.gcube.dataanalysis.ecoengine.datatypes.StatisticalType> getInputParameters()
-
getOutput
public org.gcube.dataanalysis.ecoengine.datatypes.StatisticalType getOutput()
-
initSingleNode
public void initSingleNode(org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration config)
- Specified by:
initSingleNodein classorg.gcube.dataanalysis.ecoengine.interfaces.ActorNode
-
getInternalStatus
public float getInternalStatus()
- Specified by:
getInternalStatusin classorg.gcube.dataanalysis.ecoengine.interfaces.ActorNode
-
filterMatchedTuples
public void filterMatchedTuples(List<org.gcube.dataanalysis.ecoengine.utils.Tuple<String>> tuples)
-
executeBionymWorkflow
public StringBuffer executeBionymWorkflow(String rawspeciesname, String sandboxfolder, String preprocessor, boolean[] enablematchers, float soundexweightF, int maxResults, float pruningThreshold) throws Exception
- Throws:
Exception
-
executeNode
public int executeNode(int leftStartIndex, int numberOfLeftElementsToProcess, int rightStartIndex, int numberOfRightElementsToProcess, boolean duplicate, String sandboxFolder, String nodeConfigurationFileObject, String logfileNameToProduce)- Specified by:
executeNodein classorg.gcube.dataanalysis.ecoengine.interfaces.ActorNode
-
setup
public void setup(org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration config) throws Exception- Specified by:
setupin classorg.gcube.dataanalysis.ecoengine.interfaces.ActorNode- Throws:
Exception
-
getNumberOfRightElements
public int getNumberOfRightElements()
- Specified by:
getNumberOfRightElementsin classorg.gcube.dataanalysis.ecoengine.interfaces.ActorNode
-
getNumberOfLeftElements
public int getNumberOfLeftElements()
- Specified by:
getNumberOfLeftElementsin classorg.gcube.dataanalysis.ecoengine.interfaces.ActorNode
-
stop
public void stop()
- Specified by:
stopin classorg.gcube.dataanalysis.ecoengine.interfaces.ActorNode
-
postProcess
public void postProcess(boolean manageDuplicates, boolean manageFault)- Specified by:
postProcessin classorg.gcube.dataanalysis.ecoengine.interfaces.ActorNode
-
-