fr.ifremer.isisfish.entities
Class PopulationSeasonInfoImpl

java.lang.Object
  extended by org.nuiton.topia.persistence.TopiaEntityAbstract
      extended by fr.ifremer.isisfish.entities.SeasonAbstract
          extended by fr.ifremer.isisfish.entities.SeasonImpl
              extended by fr.ifremer.isisfish.entities.PopulationSeasonInfoAbstract
                  extended by fr.ifremer.isisfish.entities.PopulationSeasonInfoImpl
All Implemented Interfaces:
PopulationSeasonInfo, Season, Serializable, org.nuiton.topia.persistence.TopiaEntity

public class PopulationSeasonInfoImpl
extends PopulationSeasonInfoAbstract

PopulationSeasonInfoImpl.java Created: 18 mars 2006 15:24:56

Version:
$Revision: 3234 $ Last update: $Date: 2011-04-05 14:34:58 +0200 (mar., 05 avril 2011) $ by : $Author: chatellier $
Author:
poussin
See Also:
Serialized Form

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
EMIGRATION_EQUATION, EMIGRATION_MATRIX, GROUP_CHANGE, IMMIGRATION_EQUATION, IMMIGRATION_MATRIX, LENGTH_CHANGE_MATRIX, MIGRATION_EQUATION, MIGRATION_MATRIX, POPULATION, REPRODUCTION, REPRODUCTION_DISTRIBUTION, SIMPLE_LENGTH_CHANGE_MATRIX, USE_EQUATION_MIGRATION
 
Fields inherited from interface fr.ifremer.isisfish.entities.Season
FIRST_MONTH, LAST_MONTH
 
Fields inherited from interface org.nuiton.topia.persistence.TopiaEntity
TOPIA_CREATE_DATE, TOPIA_ID, TOPIA_VERSION
 
Constructor Summary
PopulationSeasonInfoImpl()
           
 
Method Summary
 org.nuiton.math.matrix.MatrixND computeLengthChangeMatrix()
          Create default non spacialized matrix group changement.
 org.nuiton.math.matrix.MatrixND createNoSpacializedChangeGroupMatrix()
          Create not initialized no spacialized change group matrix.
protected  org.nuiton.math.matrix.MatrixND createSpacializedChangeGroupMatrix()
          Create not initialized spacialized change group matrix.
 double getCapturability(PopulationGroup group)
          getCapturability :
 org.nuiton.math.matrix.MatrixND getEmigrationMatrix()
          getEmigrationMatrix :
protected  org.nuiton.math.matrix.MatrixND getEmigrationMatrix(org.nuiton.math.matrix.MatrixND aN)
           
 org.nuiton.math.matrix.MatrixND getEmigrationMatrix(Month month, org.nuiton.math.matrix.MatrixND N)
          getEmigrationMatrix : Matrix [(group, zone(left)) x (group, zone(left))]
 org.nuiton.math.matrix.MatrixND getGroupChangeMatrix(Month month)
          return change group matrix for the given month for species in Length, matrix returned is all time spacialized (needed for simulation)
 org.nuiton.math.matrix.MatrixND getImmigrationMatrix()
          getImmigrationMatrix :
protected  org.nuiton.math.matrix.MatrixND getImmigrationMatrix(org.nuiton.math.matrix.MatrixND aN)
           
 org.nuiton.math.matrix.MatrixND getImmigrationMatrix(Month month, org.nuiton.math.matrix.MatrixND N)
          getImmigrationMatrix : Matrix [(group, zone(reached)) x (group, zone(reached))]
 org.nuiton.math.matrix.MatrixND getLengthChangeMatrix()
          getLengthChangeMatrix :
 org.nuiton.math.matrix.MatrixND getMigrationMatrix()
          overload to return matrix if no matrix available.
protected  org.nuiton.math.matrix.MatrixND getMigrationMatrix(org.nuiton.math.matrix.MatrixND aN)
           
 org.nuiton.math.matrix.MatrixND getMigrationMatrix(Month month, org.nuiton.math.matrix.MatrixND N)
          getMigrationMatrix : Matrix [(group, zone(left)) x (group, zone(reached))]
 org.nuiton.math.matrix.MatrixND getReproductionDistribution()
          getReproductionDistribution :
 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.
 String toString()
          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, accept, delete, getComposite, getEmigrationEquation, getGroupChange, getImmigrationEquation, getMigrationEquation, getPopulation, getReproduction, getSimpleLengthChangeMatrix, getUseEquationMigration, 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, getAggregate, getReadPropertyChangeSupport, getReadVetoableChangeSupport, getTopiaContext, getTopiaCreateDate, getTopiaId, getTopiaVersion, getWritePropertyChangeSupport, getWriteVetoableChangeSupport, hashCode, postCreate, 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, getAggregate, getTopiaContext, getTopiaCreateDate, getTopiaId, getTopiaVersion, postCreate, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaCreateDate, setTopiaId, setTopiaVersion
 

Constructor Detail

PopulationSeasonInfoImpl

public PopulationSeasonInfoImpl()
Method Detail

getReproductionDistribution

public org.nuiton.math.matrix.MatrixND getReproductionDistribution()
Description copied from class: PopulationSeasonInfoAbstract
getReproductionDistribution :

Specified by:
getReproductionDistribution in interface PopulationSeasonInfo
Overrides:
getReproductionDistribution in class PopulationSeasonInfoAbstract
Returns:
MatrixND

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 interface PopulationSeasonInfo
Overrides:
getMigrationMatrix in class PopulationSeasonInfoAbstract
Returns:
MatrixND
See Also:
PopulationSeasonInfoAbstract.getMigrationMatrix()

getEmigrationMatrix

public org.nuiton.math.matrix.MatrixND getEmigrationMatrix()
Description copied from class: PopulationSeasonInfoAbstract
getEmigrationMatrix :

Specified by:
getEmigrationMatrix in interface PopulationSeasonInfo
Overrides:
getEmigrationMatrix in class PopulationSeasonInfoAbstract
Returns:
MatrixND

getImmigrationMatrix

public org.nuiton.math.matrix.MatrixND getImmigrationMatrix()
Description copied from class: PopulationSeasonInfoAbstract
getImmigrationMatrix :

Specified by:
getImmigrationMatrix in interface PopulationSeasonInfo
Overrides:
getImmigrationMatrix in class PopulationSeasonInfoAbstract
Returns:
MatrixND

getCapturability

public double getCapturability(PopulationGroup group)
Description copied from interface: PopulationSeasonInfo
getCapturability :

Returns:
double

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()
Description copied from class: PopulationSeasonInfoAbstract
getLengthChangeMatrix :

Specified by:
getLengthChangeMatrix in interface PopulationSeasonInfo
Overrides:
getLengthChangeMatrix in class PopulationSeasonInfoAbstract
Returns:
MatrixND

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.

Returns:
MatrixND

getGroupChangeMatrix

public org.nuiton.math.matrix.MatrixND getGroupChangeMatrix(Month month)
return change group matrix for the given month for species in Length, matrix returned is all time spacialized (needed for simulation)

Returns:
MatrixND

getMigrationMatrix

public org.nuiton.math.matrix.MatrixND getMigrationMatrix(Month month,
                                                          org.nuiton.math.matrix.MatrixND N)
Description copied from interface: PopulationSeasonInfo
getMigrationMatrix :

Matrix [(group, zone(left)) x (group, zone(reached))]

Returns:
MatrixND

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
getEmigrationMatrix :

Matrix [(group, zone(left)) x (group, zone(left))]

Returns:
MatrixND

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
getImmigrationMatrix :

Matrix [(group, zone(reached)) x (group, zone(reached))]

Returns:
MatrixND

getImmigrationMatrix

protected org.nuiton.math.matrix.MatrixND getImmigrationMatrix(org.nuiton.math.matrix.MatrixND aN)

setMigrationEquationContent

public void setMigrationEquationContent(String content)

setEmigrationEquationContent

public void setEmigrationEquationContent(String content)

setImmigrationEquationContent

public void setImmigrationEquationContent(String content)

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:
MatrixND

toString

public String toString()
Description copied from class: PopulationSeasonInfoAbstract
toString :

Overrides:
toString in class PopulationSeasonInfoAbstract
Returns:
String


Copyright © 1999-2011 CodeLutin. All Rights Reserved.