Class AquamapsSuitableNode
- java.lang.Object
-
- org.gcube.dataanalysis.ecoengine.interfaces.ActorNode
-
- org.gcube.dataanalysis.executor.nodes.algorithms.AquamapsSuitableNode
-
- All Implemented Interfaces:
org.gcube.dataanalysis.ecoengine.interfaces.AlgorithmDescriptor,org.gcube.dataanalysis.ecoengine.interfaces.GenericAlgorithm
- Direct Known Subclasses:
AquamapsNativeNode,AquamapsSuitable2050Node
public class AquamapsSuitableNode extends org.gcube.dataanalysis.ecoengine.interfaces.ActorNode
-
-
Field Summary
Fields Modifier and Type Field Description protected org.gcube.dataanalysis.ecoengine.spatialdistributions.AquamapsAlgorithmCorecoreprotected StringcountCellsQueryprotected StringcountSpeciesQueryprotected StringcreateTableStatementprotected org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfigurationcurrentconfigprotected org.hibernate.SessionFactorydbHibConnectionprotected StringdestinationTableprotected StringdestinationTableLabelprotected AquamapsSuitableFunctionsoperationsprotected Stringtype
-
Constructor Summary
Constructors Constructor Description AquamapsSuitableNode()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intexecuteNode(int cellOrdinal, int chunksize, int speciesOrdinal, int speciesChunkSize, boolean duplicate, String pathToFiles, String nodeConfigurationFileObject, String logfile)Queue<String>filterProbabilitySet(Queue<String> probabiltyRows)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 voidmain2(String[] args)voidpostProcess(boolean manageDuplicates, boolean manageFault)voidsetup(org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration config)voidsingleStepPostprocess(Object species)voidsingleStepPreprocess(Object species, boolean duplicate)voidstop()
-
-
-
Field Detail
-
countSpeciesQuery
protected String countSpeciesQuery
-
countCellsQuery
protected String countCellsQuery
-
createTableStatement
protected String createTableStatement
-
destinationTable
protected String destinationTable
-
destinationTableLabel
protected String destinationTableLabel
-
type
protected String type
-
core
protected org.gcube.dataanalysis.ecoengine.spatialdistributions.AquamapsAlgorithmCore core
-
currentconfig
protected org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration currentconfig
-
operations
protected AquamapsSuitableFunctions operations
-
dbHibConnection
protected org.hibernate.SessionFactory dbHibConnection
-
-
Method Detail
-
setup
public void setup(org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration config) throws Exception- Specified by:
setupin classorg.gcube.dataanalysis.ecoengine.interfaces.ActorNode- Throws:
Exception
-
initSingleNode
public void initSingleNode(org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration config)
- Specified by:
initSingleNodein classorg.gcube.dataanalysis.ecoengine.interfaces.ActorNode
-
executeNode
public int executeNode(int cellOrdinal, int chunksize, int speciesOrdinal, int speciesChunkSize, boolean duplicate, String pathToFiles, String nodeConfigurationFileObject, String logfile)- Specified by:
executeNodein classorg.gcube.dataanalysis.ecoengine.interfaces.ActorNode
-
getInputParameters
public List<org.gcube.dataanalysis.ecoengine.datatypes.StatisticalType> getInputParameters()
-
getInternalStatus
public float getInternalStatus()
- Specified by:
getInternalStatusin classorg.gcube.dataanalysis.ecoengine.interfaces.ActorNode
-
getProperties
public org.gcube.dataanalysis.ecoengine.configuration.ALG_PROPS[] getProperties()
-
getName
public String getName()
-
getDescription
public String getDescription()
-
postProcess
public void postProcess(boolean manageDuplicates, boolean manageFault)- Specified by:
postProcessin classorg.gcube.dataanalysis.ecoengine.interfaces.ActorNode
-
singleStepPreprocess
public void singleStepPreprocess(Object species, boolean duplicate) throws Exception
- Throws:
Exception
-
singleStepPostprocess
public void singleStepPostprocess(Object species)
-
getOutput
public org.gcube.dataanalysis.ecoengine.datatypes.StatisticalType getOutput()
-
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
-
-