Package fr.ifremer.isisfish.entities
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
PopulationImpl.
Created: 11 janv. 2006 20:16:27
- Version:
- $Revision$ Last update: $Date$ by : $Author$
- Author:
- poussin
- See Also:
-
Field Summary
Fields inherited from class fr.ifremer.isisfish.entities.PopulationAbstract
abundanceReferenceMonth, capturability, capturabilityComment, capturabilityEquation, capturabilityEquationUsed, caractBioComment, comment, computeFOnLandings, fbarGroupMax, fbarGroupMin, fishingMortalityOtherFleets, gearSelectivity, geographicId, growth, growthReverse, mappingZoneReproZoneRecru, maturityOgiveEquation, meanWeight, migrationComment, monthGapBetweenReproRecrutement, name, naturalDeathRate, plusGroup, populationGroup, populationSeasonInfo, populationZone, price, recruitmentComment, recruitmentDistribution, recruitmentEquation, recruitmentZone, reproductionEquation, reproductionRateEquation, reproductionZone, seasonsComment, species, zonesCommentFields inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
readListeners, readVetoables, topiaContext, topiaCreateDate, topiaId, topiaVersion, writeListeners, writeVetoablesFields inherited from interface fr.ifremer.isisfish.entities.Population
PROPERTY_ABUNDANCE_REFERENCE_MONTH, PROPERTY_CAPTURABILITY, PROPERTY_CAPTURABILITY_COMMENT, PROPERTY_CAPTURABILITY_EQUATION, PROPERTY_CAPTURABILITY_EQUATION_USED, PROPERTY_CARACT_BIO_COMMENT, PROPERTY_COMMENT, PROPERTY_COMPUTE_FON_LANDINGS, PROPERTY_FBAR_GROUP_MAX, PROPERTY_FBAR_GROUP_MIN, PROPERTY_FISHING_MORTALITY_OTHER_FLEETS, PROPERTY_GEAR_SELECTIVITY, PROPERTY_GEOGRAPHIC_ID, PROPERTY_GROWTH, PROPERTY_GROWTH_REVERSE, PROPERTY_MAPPING_ZONE_REPRO_ZONE_RECRU, PROPERTY_MATURITY_OGIVE_EQUATION, PROPERTY_MEAN_WEIGHT, PROPERTY_MIGRATION_COMMENT, PROPERTY_MONTH_GAP_BETWEEN_REPRO_RECRUTEMENT, PROPERTY_NAME, PROPERTY_NATURAL_DEATH_RATE, PROPERTY_PLUS_GROUP, PROPERTY_POPULATION_GROUP, PROPERTY_POPULATION_SEASON_INFO, PROPERTY_POPULATION_ZONE, PROPERTY_PRICE, PROPERTY_RECRUITMENT_COMMENT, PROPERTY_RECRUITMENT_DISTRIBUTION, PROPERTY_RECRUITMENT_EQUATION, PROPERTY_RECRUITMENT_ZONE, PROPERTY_REPRODUCTION_EQUATION, PROPERTY_REPRODUCTION_RATE_EQUATION, PROPERTY_REPRODUCTION_ZONE, PROPERTY_SEASONS_COMMENT, PROPERTY_SPECIES, PROPERTY_ZONES_COMMENTFields inherited from interface org.nuiton.topia.persistence.TopiaEntity
AGGREGATE, COMPOSITE, TOPIA_CREATE_DATE, TOPIA_ID, TOPIA_VERSIONFields inherited from interface org.nuiton.topia.persistence.TopiaEntityContextable
TOPIA_CONTEXT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Overwrite delete.doublegetAge(double length, PopulationGroup group) Compute age of group with lengthorg.nuiton.math.matrix.MatrixNDorg.nuiton.math.matrix.MatrixNDReturn Matrix [groups x zones] of Fishing mortality other fleets.doublegetLength(double age, PopulationGroup group) Compute length of group with age.org.nuiton.math.matrix.MatrixNDdoublegetNaturalDeathBirth(Zone zone) org.nuiton.math.matrix.MatrixNDReturn Matrix [groups x zones] of Natural death rate.getPopulationSeasonInfo(Month month) org.nuiton.math.matrix.MatrixNDgetRecruitmentMatrix(TimeStep step, Population pop, RecruitmentInputMap recruitmentInputs, org.nuiton.math.matrix.MatrixND result) org.nuiton.math.matrix.MatrixNDN2DToN1D(org.nuiton.math.matrix.MatrixND N) Convertie une matrice N 2D en une matrice N 1D strucutre pour les calculer.voidsetCapturability(org.nuiton.math.matrix.MatrixND value) voidsetCapturabilityEquationContent(String content) voidvoidsetGrowthContent(String content) voidsetGrowthReverseContent(String content) voidsetMaturityOgiveEquationContent(String content) voidsetMeanWeightContent(String content) voidOverride to change name of equation.voidsetNaturalDeathRateContent(String content) voidsetPopulationGroup(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)voidsetPopulationSeasonInfo(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)voidsetPopulationZone(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)voidsetPriceContent(String content) voidsetRecruitmentEquationContent(String content) voidsetReproductionEquationContent(String content) voidsetReproductionRateEquationContent(String content) org.nuiton.math.matrix.MatrixNDsplit2D(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)toString()Methods inherited from class fr.ifremer.isisfish.entities.PopulationAbstract
accept, accept0, addAllPopulationGroup, addAllPopulationSeasonInfo, addAllPopulationZone, addAllRecruitmentZone, addAllReproductionZone, addPopulationGroup, addPopulationSeasonInfo, addPopulationZone, addRecruitmentZone, addReproductionZone, clearPopulationGroup, clearPopulationSeasonInfo, clearPopulationZone, clearRecruitmentZone, clearReproductionZone, getAbundanceReferenceMonth, getAggregate, getCapturabilityComment, getCapturabilityEquation, getCapturabilityEquationUsed, getCaractBioComment, getComment, getComposite, getComputeFOnLandings, getFbarGroupMax, getFbarGroupMin, getFishingMortalityOtherFleets, getGeographicId, getGrowth, getGrowthReverse, getMaturityOgiveEquation, getMeanWeight, getMigrationComment, getMonthGapBetweenReproRecrutement, getName, getNaturalDeathRate, getPlusGroup, getPopulationGroup, getPopulationGroupByTopiaId, getPopulationSeasonInfo, getPopulationSeasonInfoByTopiaId, getPopulationZone, getPopulationZoneByTopiaId, getPrice, getRecruitmentComment, getRecruitmentDistribution, getRecruitmentEquation, getRecruitmentZone, getRecruitmentZoneByTopiaId, getReproductionEquation, getReproductionRateEquation, getReproductionZone, getReproductionZoneByTopiaId, getSeasonsComment, getSpecies, getZonesComment, isCapturabilityEquationUsed, isComputeFOnLandings, isPlusGroup, isPopulationGroupEmpty, isPopulationSeasonInfoEmpty, isPopulationZoneEmpty, isRecruitmentZoneEmpty, isReproductionZoneEmpty, removePopulationGroup, removePopulationSeasonInfo, removePopulationZone, removeRecruitmentZone, removeReproductionZone, setAbundanceReferenceMonth, setCapturabilityComment, setCapturabilityEquation, setCapturabilityEquationUsed, setCaractBioComment, setComment, setComputeFOnLandings, setFbarGroupMax, setFbarGroupMin, setFishingMortalityOtherFleets, setGeographicId, setGrowth, setGrowthReverse, setMappingZoneReproZoneRecru, setMaturityOgiveEquation, setMeanWeight, setMigrationComment, setMonthGapBetweenReproRecrutement, setNaturalDeathRate, setPlusGroup, setPrice, setRecruitmentComment, setRecruitmentDistribution, setRecruitmentEquation, setRecruitmentZone, setReproductionEquation, setReproductionRateEquation, setReproductionZone, setSeasonsComment, setSpecies, setZonesComment, sizePopulationGroup, sizePopulationSeasonInfo, sizePopulationZone, sizeRecruitmentZone, sizeReproductionZone, updateMethods inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, equals, fireOnPostRead, fireOnPostRead, fireOnPostWrite, fireOnPostWrite, fireOnPreRead, fireOnPreWrite, getReadPropertyChangeSupport, getReadVetoableChangeSupport, getTopiaContext, getTopiaCreateDate, getTopiaId, getTopiaVersion, getWritePropertyChangeSupport, getWriteVetoableChangeSupport, hashCode, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaContext, setTopiaCreateDate, setTopiaId, setTopiaVersionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.nuiton.topia.persistence.TopiaEntity
addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, getTopiaCreateDate, getTopiaId, getTopiaVersion, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaCreateDate, setTopiaId, setTopiaVersionMethods inherited from interface org.nuiton.topia.persistence.TopiaEntityContextable
getTopiaContext, setTopiaContext
-
Constructor Details
-
PopulationImpl
public PopulationImpl()
-
-
Method Details
-
setPopulationGroup
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:
setPopulationGroupin interfacePopulation- Overrides:
setPopulationGroupin classPopulationAbstract
-
setPopulationSeasonInfo
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:
setPopulationSeasonInfoin interfacePopulation- Overrides:
setPopulationSeasonInfoin classPopulationAbstract
-
setPopulationZone
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:
setPopulationZonein interfacePopulation- Overrides:
setPopulationZonein classPopulationAbstract
-
delete
public void delete() throws org.nuiton.topia.TopiaExceptionOverwrite delete.- Specified by:
deletein interfaceorg.nuiton.topia.persistence.TopiaEntityContextable- Overrides:
deletein classPopulationAbstract- Throws:
org.nuiton.topia.TopiaException
-
toString
- Overrides:
toStringin classPopulationAbstract
-
setName
Override to change name of equation.- Specified by:
setNamein interfacePopulation- Overrides:
setNamein classPopulationAbstract- See Also:
-
setReproductionEquationContent
-
setRecruitmentEquationContent
-
setGrowthContent
-
setGrowthReverseContent
-
setNaturalDeathRateContent
-
setFishingMortalityOtherFleetsContent
-
setMeanWeightContent
-
setMaturityOgiveEquationContent
-
setReproductionRateEquationContent
-
setPriceContent
-
getNaturalDeathBirth
-
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
-
getAge
Compute age of group with length- Parameters:
length- length of groupgroup- group- Returns:
- age in month
-
getLength
Compute length of group with age.- Parameters:
age- age of group in monthgroup- group- Returns:
- length of group
-
setCapturability
public void setCapturability(org.nuiton.math.matrix.MatrixND value) - Specified by:
setCapturabilityin interfacePopulation- Overrides:
setCapturabilityin classPopulationAbstract
-
getCapturability
public org.nuiton.math.matrix.MatrixND getCapturability()- Specified by:
getCapturabilityin interfacePopulation- Overrides:
getCapturabilityin classPopulationAbstract
-
setCapturabilityEquationContent
-
getMappingZoneReproZoneRecru
public org.nuiton.math.matrix.MatrixND getMappingZoneReproZoneRecru()- Specified by:
getMappingZoneReproZoneRecruin interfacePopulation- Overrides:
getMappingZoneReproZoneRecruin classPopulationAbstract
-
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)
-