org.gcube.dataanalysis.executor.nodes.algorithms
Class AquamapsSuitableFunctions

java.lang.Object
  extended by org.gcube.dataanalysis.executor.nodes.algorithms.AquamapsSuitableFunctions

public class AquamapsSuitableFunctions
extends Object


Field Summary
 HashMap<String,List<Object>> allSpeciesObservations
           
 ConcurrentHashMap<String,Map<String,Float>> completeDistribution
           
 org.gcube.dataanalysis.ecoengine.spatialdistributions.AquamapsAlgorithmCore core
           
static String countAll
           
static String countAllSpeciesQuery
           
static String countCsquareCodeQuery
           
static String createTableStatement
           
static String csquareCodeQuery
           
 org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration currentconfig
           
 String currentFAOAreas
           
 HashMap<String,String> currentSpeciesBoundingBoxInfo
           
static String deleteDuplicates
           
 List<Object> environmentVectors
           
static String metainfo
           
 int numberOfCells
           
 int numberOfSpecies
           
static String probabilityInsertionStatement
           
 HashMap<String,Object> processedAreas
           
static String selectAllSpeciesObservationQuery
           
static String selectAllSpeciesQuery
           
 List<Object> speciesVectors
           
 String type
           
 
Constructor Summary
AquamapsSuitableFunctions(org.gcube.dataanalysis.ecoengine.spatialdistributions.AquamapsAlgorithmCore core, String type, org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration config)
           
 
Method Summary
 float calcProb(Object species, Object area)
           
 HashMap<String,Integer> calculateBoundingBox(Object[] csquarecode)
           
 void dumpAll(String path)
           
 String getAdditionalInformation(Object species, Object area)
           
 void getBoundingBoxInformation(Object[] speciesInfoRow, Object[] speciesObservations)
           
static String getGeographicalID(Object geoInfo)
           
static String getMainInfoID(Object speciesInfo)
           
 void rebuildAll(int cellOrdinal, int chunksize, int speciesOrdinal, int speciesChunkSize, String pathToFiles)
           
 void rebuildConfig(String configFile)
           
static void writeOnDB(List<String> buffer, String destinationTable, org.hibernate.SessionFactory dbHibConnection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

countAllSpeciesQuery

public static String countAllSpeciesQuery

countAll

public static String countAll

countCsquareCodeQuery

public static String countCsquareCodeQuery

selectAllSpeciesQuery

public static String selectAllSpeciesQuery

csquareCodeQuery

public static String csquareCodeQuery

createTableStatement

public static String createTableStatement

metainfo

public static String metainfo

selectAllSpeciesObservationQuery

public static String selectAllSpeciesObservationQuery

probabilityInsertionStatement

public static String probabilityInsertionStatement

deleteDuplicates

public static String deleteDuplicates

allSpeciesObservations

public HashMap<String,List<Object>> allSpeciesObservations

speciesVectors

public List<Object> speciesVectors

environmentVectors

public List<Object> environmentVectors

numberOfSpecies

public int numberOfSpecies

numberOfCells

public int numberOfCells

currentconfig

public org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration currentconfig

currentSpeciesBoundingBoxInfo

public HashMap<String,String> currentSpeciesBoundingBoxInfo

currentFAOAreas

public String currentFAOAreas

core

public org.gcube.dataanalysis.ecoengine.spatialdistributions.AquamapsAlgorithmCore core

type

public String type

processedAreas

public HashMap<String,Object> processedAreas

completeDistribution

public ConcurrentHashMap<String,Map<String,Float>> completeDistribution
Constructor Detail

AquamapsSuitableFunctions

public AquamapsSuitableFunctions(org.gcube.dataanalysis.ecoengine.spatialdistributions.AquamapsAlgorithmCore core,
                                 String type,
                                 org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration config)
Method Detail

calcProb

public float calcProb(Object species,
                      Object area)

calculateBoundingBox

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

getBoundingBoxInformation

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

writeOnDB

public static void writeOnDB(List<String> buffer,
                             String destinationTable,
                             org.hibernate.SessionFactory dbHibConnection)

dumpAll

public void dumpAll(String path)
             throws Exception
Throws:
Exception

rebuildConfig

public void rebuildConfig(String configFile)
                   throws Exception
Throws:
Exception

rebuildAll

public void rebuildAll(int cellOrdinal,
                       int chunksize,
                       int speciesOrdinal,
                       int speciesChunkSize,
                       String pathToFiles)
                throws Exception
Throws:
Exception

getAdditionalInformation

public String getAdditionalInformation(Object species,
                                       Object area)

getMainInfoID

public static String getMainInfoID(Object speciesInfo)

getGeographicalID

public static String getGeographicalID(Object geoInfo)


Copyright © 2013. All Rights Reserved.