fr.ifremer.isisfish.entities
Class PopulationImpl

java.lang.Object
  extended by org.nuiton.topia.persistence.TopiaEntityAbstract
      extended by fr.ifremer.isisfish.entities.PopulationAbstract
          extended by 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: 3499 $ Last update: $Date: 2011-10-28 14:18:03 +0200 (Fri, 28 Oct 2011) $ by : $Author: echatellier $
Author:
poussin
See Also:
Serialized Form

Field Summary
 
Fields inherited from class fr.ifremer.isisfish.entities.PopulationAbstract
capturability, capturabilityComment, capturabilityEquation, capturabilityEquationUsed, caractBioComment, comment, gearSelectivity, geographicId, growth, growthReverse, mappingZoneReproZoneRecru, maturityOgiveEquation, meanWeight, migrationComment, monthGapBetweenReproRecrutement, name, naturalDeathRate, plusGroup, populationGroup, populationSeasonInfo, populationZone, price, recruitmentComment, recruitmentDistribution, 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_CAPTURABILITY, PROPERTY_CAPTURABILITY_COMMENT, PROPERTY_CAPTURABILITY_EQUATION, PROPERTY_CAPTURABILITY_EQUATION_USED, PROPERTY_CARACT_BIO_COMMENT, PROPERTY_COMMENT, 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_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.TopiaEntityContextable
TOPIA_CONTEXT
 
Fields inherited from interface org.nuiton.topia.persistence.TopiaEntity
AGGREGATE, COMPOSITE, TOPIA_CREATE_DATE, TOPIA_ID, TOPIA_VERSION
 
Constructor Summary
PopulationImpl()
           
 
Method Summary
 void delete()
          Overwrite delete.
 double getAge(double length, PopulationGroup group)
          Compute age of group with length
 org.nuiton.math.matrix.MatrixND getCapturability()
           
 double getLength(double age, PopulationGroup group)
          Compute length of group with age.
 org.nuiton.math.matrix.MatrixND getMappingZoneReproZoneRecru()
           
 double getNaturalDeathBirth(Zone zone)
           
 org.nuiton.math.matrix.MatrixND getNaturalDeathRateMatrix()
          Return Matrix [groups x zones] of Natural death rate.
 PopulationSeasonInfo getPopulationSeasonInfo(Month month)
           
 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 setGrowthContent(String content)
           
 void setGrowthReverseContent(String content)
           
 void setMaturityOgiveEquationContent(String content)
           
 void setMeanWeightContent(String content)
           
 void setName(String value)
          Override to change name of equation.
 void setNaturalDeathRateContent(String content)
           
 void setPriceContent(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)
 String toString()
           
 
Methods inherited from class fr.ifremer.isisfish.entities.PopulationAbstract
accept, addAllPopulationGroup, addAllPopulationSeasonInfo, addAllPopulationZone, addAllRecruitmentZone, addAllReproductionZone, addPopulationGroup, addPopulationSeasonInfo, addPopulationZone, addRecruitmentZone, addReproductionZone, clearPopulationGroup, clearPopulationSeasonInfo, clearPopulationZone, clearRecruitmentZone, clearReproductionZone, getAggregate, getCapturabilityComment, getCapturabilityEquation, getCapturabilityEquationUsed, getCaractBioComment, getComment, getComposite, getGeographicId, getGrowth, getGrowthReverse, getMaturityOgiveEquation, getMeanWeight, getMigrationComment, getMonthGapBetweenReproRecrutement, getName, getNaturalDeathRate, getPlusGroup, getPopulationGroup, getPopulationGroupByTopiaId, getPopulationSeasonInfo, getPopulationSeasonInfoByTopiaId, getPopulationZone, getPopulationZoneByTopiaId, getPrice, getRecruitmentComment, getRecruitmentDistribution, getRecruitmentZone, getRecruitmentZoneByTopiaId, getReproductionEquation, getReproductionRateEquation, getReproductionZone, getReproductionZoneByTopiaId, getSeasonsComment, getSpecies, getZonesComment, isCapturabilityEquationUsed, isPlusGroup, isPopulationGroupEmpty, isPopulationSeasonInfoEmpty, isPopulationZoneEmpty, isRecruitmentZoneEmpty, isReproductionZoneEmpty, removePopulationGroup, removePopulationSeasonInfo, removePopulationZone, removeRecruitmentZone, removeReproductionZone, setCapturabilityComment, setCapturabilityEquation, setCapturabilityEquationUsed, setCaractBioComment, setComment, setGeographicId, setGrowth, setGrowthReverse, setMappingZoneReproZoneRecru, setMaturityOgiveEquation, setMeanWeight, setMigrationComment, setMonthGapBetweenReproRecrutement, setNaturalDeathRate, setPlusGroup, setPopulationGroup, setPopulationSeasonInfo, setPopulationZone, setPrice, setRecruitmentComment, setRecruitmentDistribution, 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.TopiaEntityContextable
getTopiaContext, setTopiaContext
 
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
 

Constructor Detail

PopulationImpl

public PopulationImpl()
Method Detail

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:
PopulationAbstract.setName(java.lang.String)

setReproductionEquationContent

public void setReproductionEquationContent(String content)

setGrowthContent

public void setGrowthContent(String content)

setGrowthReverseContent

public void setGrowthReverseContent(String content)

setNaturalDeathRateContent

public void setNaturalDeathRateContent(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

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(MatrixND)

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:
N2DToN1D(MatrixND)


Copyright © 1999-2012 CodeLutin. All Rights Reserved.