Class PopulationImpl

java.lang.Object
org.nuiton.topia.persistence.TopiaEntityAbstract
fr.ifremer.isisfish.entities.PopulationAbstract
fr.ifremer.isisfish.entities.PopulationImpl
All Implemented Interfaces:
Population, Serializable, org.nuiton.topia.persistence.TopiaEntity, org.nuiton.topia.persistence.TopiaEntityContextable

public class PopulationImpl extends PopulationAbstract
PopulationImpl. Created: 11 janv. 2006 20:16:27
Version:
$Revision$ Last update: $Date$ by : $Author$
Author:
poussin
See Also:
  • Constructor Details

    • PopulationImpl

      public PopulationImpl()
  • Method Details

    • setPopulationGroup

      public void setPopulationGroup(List<PopulationGroup> populationGroup)
      Surcharge car avec une aggregation (lien fort) il ne faut pas remplacer la collection, mais vider celle qui existe et y mettre les nouveaux elements sinon hibernate perd la tete et leve des exceptions (detecter lors de l'implantation de l'import json)
      Specified by:
      setPopulationGroup in interface Population
      Overrides:
      setPopulationGroup in class PopulationAbstract
    • setPopulationSeasonInfo

      public void setPopulationSeasonInfo(List<PopulationSeasonInfo> populationSeasonInfo)
      Surcharge car avec une aggregation (lien fort) il ne faut pas remplacer la collection, mais vider celle qui existe et y mettre les nouveaux elements sinon hibernate perd la tete et leve des exceptions (detecter lors de l'implantation de l'import json)
      Specified by:
      setPopulationSeasonInfo in interface Population
      Overrides:
      setPopulationSeasonInfo in class PopulationAbstract
    • setPopulationZone

      public void setPopulationZone(List<Zone> populationZone)
      Surcharge car avec une aggregation (lien fort) il ne faut pas remplacer la collection, mais vider celle qui existe et y mettre les nouveaux elements sinon hibernate perd la tete et leve des exceptions (detecter lors de l'implantation de l'import json)
      Specified by:
      setPopulationZone in interface Population
      Overrides:
      setPopulationZone in class PopulationAbstract
    • delete

      public void delete() throws org.nuiton.topia.TopiaException
      Overwrite delete.
      Specified by:
      delete in interface org.nuiton.topia.persistence.TopiaEntityContextable
      Overrides:
      delete in class PopulationAbstract
      Throws:
      org.nuiton.topia.TopiaException
    • toString

      public String toString()
      Overrides:
      toString in class PopulationAbstract
    • setName

      public void setName(String value)
      Override to change name of equation.
      Specified by:
      setName in interface Population
      Overrides:
      setName in class PopulationAbstract
      See Also:
    • setReproductionEquationContent

      public void setReproductionEquationContent(String content)
    • setRecruitmentEquationContent

      public void setRecruitmentEquationContent(String content)
    • setGrowthContent

      public void setGrowthContent(String content)
    • setGrowthReverseContent

      public void setGrowthReverseContent(String content)
    • setNaturalDeathRateContent

      public void setNaturalDeathRateContent(String content)
    • setFishingMortalityOtherFleetsContent

      public void setFishingMortalityOtherFleetsContent(String content)
    • setMeanWeightContent

      public void setMeanWeightContent(String content)
    • setMaturityOgiveEquationContent

      public void setMaturityOgiveEquationContent(String content)
    • setReproductionRateEquationContent

      public void setReproductionRateEquationContent(String content)
    • setPriceContent

      public void setPriceContent(String content)
    • getNaturalDeathBirth

      public double getNaturalDeathBirth(Zone zone)
    • getNaturalDeathRateMatrix

      public org.nuiton.math.matrix.MatrixND getNaturalDeathRateMatrix()
      Return Matrix [groups x zones] of Natural death rate.
      Returns:
      a matrix
    • getFishingMortalityOtherFleetsMatrix

      public org.nuiton.math.matrix.MatrixND getFishingMortalityOtherFleetsMatrix()
      Return Matrix [groups x zones] of Fishing mortality other fleets.
      Returns:
      a matrix
    • getPopulationSeasonInfo

      public PopulationSeasonInfo getPopulationSeasonInfo(Month month)
    • getAge

      public double getAge(double length, PopulationGroup group)
      Compute age of group with length
      Parameters:
      length - length of group
      group - group
      Returns:
      age in month
    • getLength

      public double getLength(double age, PopulationGroup group)
      Compute length of group with age.
      Parameters:
      age - age of group in month
      group - group
      Returns:
      length of group
    • setCapturability

      public void setCapturability(org.nuiton.math.matrix.MatrixND value)
      Specified by:
      setCapturability in interface Population
      Overrides:
      setCapturability in class PopulationAbstract
    • getCapturability

      public org.nuiton.math.matrix.MatrixND getCapturability()
      Specified by:
      getCapturability in interface Population
      Overrides:
      getCapturability in class PopulationAbstract
    • setCapturabilityEquationContent

      public void setCapturabilityEquationContent(String content)
    • getMappingZoneReproZoneRecru

      public org.nuiton.math.matrix.MatrixND getMappingZoneReproZoneRecru()
      Specified by:
      getMappingZoneReproZoneRecru in interface Population
      Overrides:
      getMappingZoneReproZoneRecru in class PopulationAbstract
    • N2DToN1D

      public org.nuiton.math.matrix.MatrixND N2DToN1D(org.nuiton.math.matrix.MatrixND N)
      Convertie une matrice N 2D en une matrice N 1D strucutre pour les calculer. N2D[classes, zones] --> N1D[classe1(zone1, zone2, ...), classe2(zone1, zone2, ...)]
      See Also:
    • split2D

      public org.nuiton.math.matrix.MatrixND split2D(org.nuiton.math.matrix.MatrixND N)
      A partir d'une matrice N structure selon l'ecriture matricielle en classe puis en zone, construit une matrice 2D en Classe(X) et en Zone(Y)
      See Also:
    • getRecruitmentMatrix

      public org.nuiton.math.matrix.MatrixND getRecruitmentMatrix(TimeStep step, Population pop, RecruitmentInputMap recruitmentInputs, org.nuiton.math.matrix.MatrixND result)