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, zonesComment
Fields inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
readListeners, readVetoables, topiaContext, topiaCreateDate, topiaId, topiaVersion, writeListeners, writeVetoables
Fields 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_COMMENT
Fields inherited from interface org.nuiton.topia.persistence.TopiaEntity
AGGREGATE, COMPOSITE, TOPIA_CREATE_DATE, TOPIA_ID, TOPIA_VERSION
Fields inherited from interface org.nuiton.topia.persistence.TopiaEntityContextable
TOPIA_CONTEXT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
Overwrite delete.double
getAge
(double length, PopulationGroup group) Compute age of group with lengthorg.nuiton.math.matrix.MatrixND
org.nuiton.math.matrix.MatrixND
Return Matrix [groups x zones] of Fishing mortality other fleets.double
getLength
(double age, PopulationGroup group) Compute length of group with age.org.nuiton.math.matrix.MatrixND
double
getNaturalDeathBirth
(Zone zone) org.nuiton.math.matrix.MatrixND
Return Matrix [groups x zones] of Natural death rate.getPopulationSeasonInfo
(Month month) org.nuiton.math.matrix.MatrixND
getRecruitmentMatrix
(TimeStep step, Population pop, RecruitmentInputMap recruitmentInputs, org.nuiton.math.matrix.MatrixND result) 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.void
setCapturability
(org.nuiton.math.matrix.MatrixND value) void
setCapturabilityEquationContent
(String content) void
void
setGrowthContent
(String content) void
setGrowthReverseContent
(String content) void
setMaturityOgiveEquationContent
(String content) void
setMeanWeightContent
(String content) void
Override to change name of equation.void
setNaturalDeathRateContent
(String content) 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)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)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)void
setPriceContent
(String content) void
setRecruitmentEquationContent
(String content) void
setReproductionEquationContent
(String content) void
setReproductionRateEquationContent
(String content) 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)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, update
Methods 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, setTopiaVersion
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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, setTopiaVersion
Methods 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:
setPopulationGroup
in interfacePopulation
- Overrides:
setPopulationGroup
in 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:
setPopulationSeasonInfo
in interfacePopulation
- Overrides:
setPopulationSeasonInfo
in 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:
setPopulationZone
in interfacePopulation
- Overrides:
setPopulationZone
in classPopulationAbstract
-
delete
public void delete() throws org.nuiton.topia.TopiaExceptionOverwrite delete.- Specified by:
delete
in interfaceorg.nuiton.topia.persistence.TopiaEntityContextable
- Overrides:
delete
in classPopulationAbstract
- Throws:
org.nuiton.topia.TopiaException
-
toString
- Overrides:
toString
in classPopulationAbstract
-
setName
Override to change name of equation.- Specified by:
setName
in interfacePopulation
- Overrides:
setName
in 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:
setCapturability
in interfacePopulation
- Overrides:
setCapturability
in classPopulationAbstract
-
getCapturability
public org.nuiton.math.matrix.MatrixND getCapturability()- Specified by:
getCapturability
in interfacePopulation
- Overrides:
getCapturability
in classPopulationAbstract
-
setCapturabilityEquationContent
-
getMappingZoneReproZoneRecru
public org.nuiton.math.matrix.MatrixND getMappingZoneReproZoneRecru()- Specified by:
getMappingZoneReproZoneRecru
in interfacePopulation
- Overrides:
getMappingZoneReproZoneRecru
in 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)
-