org.gcube.application.aquamaps.ecomodelling.generators.connectors
Class DistributionGeneratorInterface

java.lang.Object
  extended by org.gcube.application.aquamaps.ecomodelling.generators.connectors.DistributionGeneratorInterface

public class DistributionGeneratorInterface
extends java.lang.Object


Constructor Summary
DistributionGeneratorInterface(GenerationModel model, java.lang.String configPath)
          initializes the calculator
 
Method Summary
 java.util.List<Hspec> compute(java.util.List<Hcaf> hcaflist, Hspen hspen)
          computes the list of Hspec for the couples (species,hcaf1), (species,hcaf2), ...
 java.util.HashMap<java.lang.String,java.util.List<Hspec>> compute(java.util.List<Hcaf> hcaflist, java.util.List<Hspen> hspenlist)
          sequentially computes the overall hspec for the species along the cells the output map uses speciesID as key.
 double computeProbability(Hcaf hcaf, Hspen hspen)
          computes the punctual probability according to the model
 BoundingBoxInformation getBoudingBox(Hcaf hcaf, Hspen hspen, boolean gen2050)
          gets the bounding box information according to the model
 double getStatus()
          gets the status in percentage of the current calculation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistributionGeneratorInterface

public DistributionGeneratorInterface(GenerationModel model,
                                      java.lang.String configPath)
initializes the calculator

Parameters:
model -
configPath -
Method Detail

getStatus

public double getStatus()
gets the status in percentage of the current calculation

Returns:

getBoudingBox

public BoundingBoxInformation getBoudingBox(Hcaf hcaf,
                                            Hspen hspen,
                                            boolean gen2050)
                                     throws java.lang.Exception
gets the bounding box information according to the model

Parameters:
hcaf -
hspen -
gen2050 -
Returns:
Throws:
java.lang.Exception

computeProbability

public double computeProbability(Hcaf hcaf,
                                 Hspen hspen)
                          throws java.lang.Exception
computes the punctual probability according to the model

Parameters:
hcaf -
hspen -
Returns:
Throws:
java.lang.Exception

compute

public java.util.List<Hspec> compute(java.util.List<Hcaf> hcaflist,
                                     Hspen hspen)
                              throws java.lang.Exception
computes the list of Hspec for the couples (species,hcaf1), (species,hcaf2), ...

Parameters:
hcaflist -
hspen -
Returns:
Throws:
java.lang.Exception

compute

public java.util.HashMap<java.lang.String,java.util.List<Hspec>> compute(java.util.List<Hcaf> hcaflist,
                                                                         java.util.List<Hspen> hspenlist)
                                                                  throws java.lang.Exception
sequentially computes the overall hspec for the species along the cells the output map uses speciesID as key. To each key, a list of resulting Hspec is associated

Parameters:
hcaflist -
hspenlist -
Returns:
Throws:
java.lang.Exception