org.gcube.dataanalysis.ecoengine.spatialdistributions
Class AquamapsSuitable

java.lang.Object
  extended by org.gcube.dataanalysis.ecoengine.spatialdistributions.AquamapsSuitable
All Implemented Interfaces:
SpatialProbabilityDistribution, SpatialProbabilityDistributionTable
Direct Known Subclasses:
AquamapsNative, AquamapsNNSuitable, AquamapsSuitable2050

public class AquamapsSuitable
extends Object
implements SpatialProbabilityDistributionTable


Field Summary
protected  HashMap<String,List<Object>> allSpeciesObservations
           
protected  String currentFAOAreas
           
protected  HashMap<String,String> currentSpeciesBoundingBoxInfo
           
protected  String type
           
 
Constructor Summary
AquamapsSuitable()
           
 
Method Summary
 float calcProb(Object species, Object area)
           
 HashMap<String,Integer> calculateBoundingBox(Object[] csquarecode)
           
 Queue<String> filterProbabilitySet(Queue<String> probabiltyRows)
           
 String filterProbabiltyRow(String probabiltyRow)
           
protected  String generateMaxMinHspec(String minmaxTableName, String hspenTable, String occurrencePointsTable, org.hibernate.SessionFactory dbHibConnection)
           
 String getAdditionalInformation(Object species, Object area)
           
 String getAdditionalMetaInformation()
           
 void getBoundingBoxInformation(Object[] speciesInfoRow, Object[] speciesObservations)
           
 String getDescription()
           
 String getDistributionTableStatement()
           
 String getGeographicalID(Object geoInfo)
           
 String getGeographicalInfoQuery()
           
 List<StatisticalType> getInputParameters()
           
 float getInternalStatus()
           
 String getMainInfoID(Object speciesInfo)
           
 String getMainInfoQuery()
           
 String getName()
           
 StatisticalType getOutput()
           
 ALG_PROPS[] getProperties()
           
 void init(AlgorithmConfiguration config, org.hibernate.SessionFactory dbHibConnection)
           
 boolean isSynchronousProbabilityWrite()
           
 void postProcess()
           
 void singleStepPostprocess(Object species, Object area)
           
 void singleStepPreprocess(Object species, Object allAreasInformation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentFAOAreas

protected String currentFAOAreas

currentSpeciesBoundingBoxInfo

protected HashMap<String,String> currentSpeciesBoundingBoxInfo

allSpeciesObservations

protected HashMap<String,List<Object>> allSpeciesObservations

type

protected String type
Constructor Detail

AquamapsSuitable

public AquamapsSuitable()
Method Detail

generateMaxMinHspec

protected String generateMaxMinHspec(String minmaxTableName,
                                     String hspenTable,
                                     String occurrencePointsTable,
                                     org.hibernate.SessionFactory dbHibConnection)

init

public void init(AlgorithmConfiguration config,
                 org.hibernate.SessionFactory dbHibConnection)
Specified by:
init in interface SpatialProbabilityDistributionTable

getMainInfoQuery

public String getMainInfoQuery()
Specified by:
getMainInfoQuery in interface SpatialProbabilityDistributionTable

getGeographicalInfoQuery

public String getGeographicalInfoQuery()
Specified by:
getGeographicalInfoQuery in interface SpatialProbabilityDistributionTable

calcProb

public float calcProb(Object species,
                      Object area)
Specified by:
calcProb in interface SpatialProbabilityDistributionTable

getAdditionalMetaInformation

public String getAdditionalMetaInformation()
Specified by:
getAdditionalMetaInformation in interface SpatialProbabilityDistributionTable

getAdditionalInformation

public String getAdditionalInformation(Object species,
                                       Object area)
Specified by:
getAdditionalInformation in interface SpatialProbabilityDistributionTable

postProcess

public void postProcess()
Specified by:
postProcess in interface SpatialProbabilityDistributionTable

getDistributionTableStatement

public String getDistributionTableStatement()
Specified by:
getDistributionTableStatement in interface SpatialProbabilityDistributionTable

getMainInfoID

public String getMainInfoID(Object speciesInfo)
Specified by:
getMainInfoID in interface SpatialProbabilityDistributionTable

getGeographicalID

public String getGeographicalID(Object geoInfo)
Specified by:
getGeographicalID in interface SpatialProbabilityDistributionTable

calculateBoundingBox

public HashMap<String,Integer> calculateBoundingBox(Object[] csquarecode)

getBoundingBoxInformation

public void getBoundingBoxInformation(Object[] speciesInfoRow,
                                      Object[] speciesObservations)

singleStepPreprocess

public void singleStepPreprocess(Object species,
                                 Object allAreasInformation)
Specified by:
singleStepPreprocess in interface SpatialProbabilityDistributionTable

singleStepPostprocess

public void singleStepPostprocess(Object species,
                                  Object area)
Specified by:
singleStepPostprocess in interface SpatialProbabilityDistributionTable

isSynchronousProbabilityWrite

public boolean isSynchronousProbabilityWrite()
Specified by:
isSynchronousProbabilityWrite in interface SpatialProbabilityDistributionTable

filterProbabiltyRow

public String filterProbabiltyRow(String probabiltyRow)
Specified by:
filterProbabiltyRow in interface SpatialProbabilityDistributionTable

filterProbabilitySet

public Queue<String> filterProbabilitySet(Queue<String> probabiltyRows)
Specified by:
filterProbabilitySet in interface SpatialProbabilityDistributionTable

getInternalStatus

public float getInternalStatus()
Specified by:
getInternalStatus in interface SpatialProbabilityDistributionTable

getProperties

public ALG_PROPS[] getProperties()
Specified by:
getProperties in interface SpatialProbabilityDistribution
Specified by:
getProperties in interface SpatialProbabilityDistributionTable

getName

public String getName()
Specified by:
getName in interface SpatialProbabilityDistribution

getDescription

public String getDescription()
Specified by:
getDescription in interface SpatialProbabilityDistribution

getInputParameters

public List<StatisticalType> getInputParameters()
Specified by:
getInputParameters in interface SpatialProbabilityDistribution

getOutput

public StatisticalType getOutput()
Specified by:
getOutput in interface SpatialProbabilityDistribution


Copyright © 2012. All Rights Reserved.