Package fr.ifremer.isisfish.entities
Class PopulationSeasonInfoImpl
java.lang.Object
org.nuiton.topia.persistence.TopiaEntityAbstract
fr.ifremer.isisfish.entities.SeasonAbstract
fr.ifremer.isisfish.entities.SeasonImpl
fr.ifremer.isisfish.entities.PopulationSeasonInfoAbstract
fr.ifremer.isisfish.entities.PopulationSeasonInfoImpl
- All Implemented Interfaces:
PopulationSeasonInfo
,Season
,Serializable
,org.nuiton.topia.persistence.TopiaEntity
,org.nuiton.topia.persistence.TopiaEntityContextable
PopulationSeasonInfoImpl.java
Created: 18 mars 2006 15:24:56
- Version:
- $Revision$ Last update: $Date$ by : $Author$
- Author:
- poussin
- See Also:
-
Field Summary
Fields inherited from class fr.ifremer.isisfish.entities.PopulationSeasonInfoAbstract
emigrationEquation, emigrationMatrix, groupChange, immigrationEquation, immigrationMatrix, lengthChangeMatrix, migrationEquation, migrationMatrix, population, reproduction, reproductionDistribution, simpleLengthChangeMatrix, useEquationMigration
Fields inherited from class fr.ifremer.isisfish.entities.SeasonAbstract
firstMonth, lastMonth
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.PopulationSeasonInfo
PROPERTY_EMIGRATION_EQUATION, PROPERTY_EMIGRATION_MATRIX, PROPERTY_GROUP_CHANGE, PROPERTY_IMMIGRATION_EQUATION, PROPERTY_IMMIGRATION_MATRIX, PROPERTY_LENGTH_CHANGE_MATRIX, PROPERTY_MIGRATION_EQUATION, PROPERTY_MIGRATION_MATRIX, PROPERTY_POPULATION, PROPERTY_REPRODUCTION, PROPERTY_REPRODUCTION_DISTRIBUTION, PROPERTY_SIMPLE_LENGTH_CHANGE_MATRIX, PROPERTY_USE_EQUATION_MIGRATION
Fields inherited from interface fr.ifremer.isisfish.entities.Season
PROPERTY_FIRST_MONTH, PROPERTY_LAST_MONTH
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 TypeMethodDescriptionorg.nuiton.math.matrix.MatrixND
Create default non spacialized matrix group changement.org.nuiton.math.matrix.MatrixND
Create not initialized no spacialized change group matrix.protected org.nuiton.math.matrix.MatrixND
Create not initialized spacialized change group matrix.double
getCapturability
(PopulationGroup group) org.nuiton.math.matrix.MatrixND
org.nuiton.math.matrix.MatrixND
getEmigrationMatrix
(Month month, org.nuiton.math.matrix.MatrixND N) Matrix [(group, zone(left)) x (group, zone(left))]protected org.nuiton.math.matrix.MatrixND
getEmigrationMatrix
(org.nuiton.math.matrix.MatrixND aN) org.nuiton.math.matrix.MatrixND
getGroupChangeMatrix
(Month month) Return change group matrix for the given month.org.nuiton.math.matrix.MatrixND
org.nuiton.math.matrix.MatrixND
getImmigrationMatrix
(Month month, org.nuiton.math.matrix.MatrixND N) Matrix [(group, zone(reached)) x (group, zone(reached))]protected org.nuiton.math.matrix.MatrixND
getImmigrationMatrix
(org.nuiton.math.matrix.MatrixND aN) org.nuiton.math.matrix.MatrixND
org.nuiton.math.matrix.MatrixND
overload to return matrix if no matrix available.org.nuiton.math.matrix.MatrixND
getMigrationMatrix
(Month month, org.nuiton.math.matrix.MatrixND N) Matrix [(group, zone(left)) x (group, zone(reached))]protected org.nuiton.math.matrix.MatrixND
getMigrationMatrix
(org.nuiton.math.matrix.MatrixND aN) org.nuiton.math.matrix.MatrixND
org.nuiton.math.matrix.MatrixND
getReproductionMatrix
(Month month, org.nuiton.math.matrix.MatrixND aN) Construit la matrice de reproduction.void
setEmigrationEquationContent
(String content) void
setImmigrationEquationContent
(String content) void
setMigrationEquationContent
(String content) org.nuiton.math.matrix.MatrixND
spacializeLengthChangeMatrix
(org.nuiton.math.matrix.MatrixND mat) Convert no spacialized matrix to spacialized matrix.toString()
org.nuiton.math.matrix.MatrixND
unspacializeLengthChangeMatrix
(org.nuiton.math.matrix.MatrixND mat) Convert spacialized matrix to non spacialized matrix.Methods inherited from class fr.ifremer.isisfish.entities.PopulationSeasonInfoAbstract
accept, accept0, delete, getAggregate, getComposite, getEmigrationEquation, getGroupChange, getImmigrationEquation, getMigrationEquation, getPopulation, getReproduction, getSimpleLengthChangeMatrix, getUseEquationMigration, isGroupChange, isReproduction, isSimpleLengthChangeMatrix, isUseEquationMigration, setEmigrationEquation, setEmigrationMatrix, setGroupChange, setImmigrationEquation, setImmigrationMatrix, setLengthChangeMatrix, setMigrationEquation, setMigrationMatrix, setPopulation, setReproduction, setReproductionDistribution, setSimpleLengthChangeMatrix, setUseEquationMigration, update
Methods inherited from class fr.ifremer.isisfish.entities.SeasonImpl
containsMonth, getMonths, setMonths
Methods inherited from class fr.ifremer.isisfish.entities.SeasonAbstract
getFirstMonth, getLastMonth, setFirstMonth, setLastMonth
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 fr.ifremer.isisfish.entities.Season
containsMonth, getFirstMonth, getLastMonth, getMonths, setFirstMonth, setLastMonth, setMonths
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
-
PopulationSeasonInfoImpl
public PopulationSeasonInfoImpl()
-
-
Method Details
-
getReproductionDistribution
public org.nuiton.math.matrix.MatrixND getReproductionDistribution()- Specified by:
getReproductionDistribution
in interfacePopulationSeasonInfo
- Overrides:
getReproductionDistribution
in classPopulationSeasonInfoAbstract
-
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 interfacePopulationSeasonInfo
- Overrides:
getMigrationMatrix
in classPopulationSeasonInfoAbstract
- See Also:
-
getEmigrationMatrix
public org.nuiton.math.matrix.MatrixND getEmigrationMatrix()- Specified by:
getEmigrationMatrix
in interfacePopulationSeasonInfo
- Overrides:
getEmigrationMatrix
in classPopulationSeasonInfoAbstract
-
getImmigrationMatrix
public org.nuiton.math.matrix.MatrixND getImmigrationMatrix()- Specified by:
getImmigrationMatrix
in interfacePopulationSeasonInfo
- Overrides:
getImmigrationMatrix
in classPopulationSeasonInfoAbstract
-
getCapturability
-
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 interfacePopulationSeasonInfo
- Overrides:
getLengthChangeMatrix
in classPopulationSeasonInfoAbstract
-
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
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
-
setEmigrationEquationContent
-
setImmigrationEquationContent
-
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
- Overrides:
toString
in classPopulationSeasonInfoAbstract
-