Class PopulationSeasonInfoImpl

java.lang.Object
org.nuiton.topia.persistence.TopiaEntityAbstract
All Implemented Interfaces:
PopulationSeasonInfo, Season, Serializable, org.nuiton.topia.persistence.TopiaEntity, org.nuiton.topia.persistence.TopiaEntityContextable

public class PopulationSeasonInfoImpl extends PopulationSeasonInfoAbstract
PopulationSeasonInfoImpl.java Created: 18 mars 2006 15:24:56
Version:
$Revision$ Last update: $Date$ by : $Author$
Author:
poussin
See Also:
  • Constructor Details

    • PopulationSeasonInfoImpl

      public PopulationSeasonInfoImpl()
  • Method Details

    • getReproductionDistribution

      public org.nuiton.math.matrix.MatrixND getReproductionDistribution()
      Specified by:
      getReproductionDistribution in interface PopulationSeasonInfo
      Overrides:
      getReproductionDistribution in class PopulationSeasonInfoAbstract
    • getMigrationMatrix

      public org.nuiton.math.matrix.MatrixND getMigrationMatrix()
      overload to return matrix if no matrix available. The matrix returned by this method can't be used directly because it contains only the migration (departure != arrival) and not the coefficient that stay on the same zone. This coefficient is calculated with over coefficient to have 1 as sum of all coefficient.
      Specified by:
      getMigrationMatrix in interface PopulationSeasonInfo
      Overrides:
      getMigrationMatrix in class PopulationSeasonInfoAbstract
      See Also:
    • getEmigrationMatrix

      public org.nuiton.math.matrix.MatrixND getEmigrationMatrix()
      Specified by:
      getEmigrationMatrix in interface PopulationSeasonInfo
      Overrides:
      getEmigrationMatrix in class PopulationSeasonInfoAbstract
    • getImmigrationMatrix

      public org.nuiton.math.matrix.MatrixND getImmigrationMatrix()
      Specified by:
      getImmigrationMatrix in interface PopulationSeasonInfo
      Overrides:
      getImmigrationMatrix in class PopulationSeasonInfoAbstract
    • getCapturability

      public double getCapturability(PopulationGroup group)
    • createNoSpacializedChangeGroupMatrix

      public org.nuiton.math.matrix.MatrixND createNoSpacializedChangeGroupMatrix()
      Create not initialized no spacialized change group matrix.
      Returns:
      not initialized no spacialized change group matrix
    • getLengthChangeMatrix

      public org.nuiton.math.matrix.MatrixND getLengthChangeMatrix()
      Specified by:
      getLengthChangeMatrix in interface PopulationSeasonInfo
      Overrides:
      getLengthChangeMatrix in class PopulationSeasonInfoAbstract
    • unspacializeLengthChangeMatrix

      public org.nuiton.math.matrix.MatrixND unspacializeLengthChangeMatrix(org.nuiton.math.matrix.MatrixND mat)
      Convert spacialized matrix to non spacialized matrix.
      Parameters:
      mat - spacialized matrix
      Returns:
      non spacialized matrix
    • createSpacializedChangeGroupMatrix

      protected org.nuiton.math.matrix.MatrixND createSpacializedChangeGroupMatrix()
      Create not initialized spacialized change group matrix.
      Returns:
      not initialized spacialized change group matrix
    • spacializeLengthChangeMatrix

      public org.nuiton.math.matrix.MatrixND spacializeLengthChangeMatrix(org.nuiton.math.matrix.MatrixND mat)
      Convert no spacialized matrix to spacialized matrix.
      Parameters:
      mat - no spacialized matrix
      Returns:
      spacialized matrix
    • computeLengthChangeMatrix

      public org.nuiton.math.matrix.MatrixND computeLengthChangeMatrix()
      Create default non spacialized matrix group changement.
    • getGroupChangeMatrix

      public org.nuiton.math.matrix.MatrixND getGroupChangeMatrix(Month month)
      Return change group matrix for the given month. for species in Length, matrix returned is all time spacialized (needed for simulation)
    • getMigrationMatrix

      public org.nuiton.math.matrix.MatrixND getMigrationMatrix(Month month, org.nuiton.math.matrix.MatrixND N)
      Description copied from interface: PopulationSeasonInfo

      Matrix [(group, zone(left)) x (group, zone(reached))]

      Returns:
    • getMigrationMatrix

      protected org.nuiton.math.matrix.MatrixND getMigrationMatrix(org.nuiton.math.matrix.MatrixND aN)
    • getEmigrationMatrix

      public org.nuiton.math.matrix.MatrixND getEmigrationMatrix(Month month, org.nuiton.math.matrix.MatrixND N)
      Description copied from interface: PopulationSeasonInfo

      Matrix [(group, zone(left)) x (group, zone(left))]

      Returns:
    • getEmigrationMatrix

      protected org.nuiton.math.matrix.MatrixND getEmigrationMatrix(org.nuiton.math.matrix.MatrixND aN)
    • getImmigrationMatrix

      public org.nuiton.math.matrix.MatrixND getImmigrationMatrix(Month month, org.nuiton.math.matrix.MatrixND N)
      Description copied from interface: PopulationSeasonInfo

      Matrix [(group, zone(reached)) x (group, zone(reached))]

      Returns:
    • getImmigrationMatrix

      protected org.nuiton.math.matrix.MatrixND getImmigrationMatrix(org.nuiton.math.matrix.MatrixND aN)
    • setMigrationEquationContent

      public void setMigrationEquationContent(String content)
    • setEmigrationEquationContent

      public void setEmigrationEquationContent(String content)
    • setImmigrationEquationContent

      public void setImmigrationEquationContent(String content)
    • getReproductionMatrix

      public org.nuiton.math.matrix.MatrixND getReproductionMatrix(Month month, org.nuiton.math.matrix.MatrixND aN)
      Construit la matrice de reproduction. C'est un vecteur contenant le nombre d'individu creer par la reproduction. Le vecteur est structure en zone de reproduction.
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class PopulationSeasonInfoAbstract