49 Stock(
const char* givenname);
149 void Print(ofstream& outfile)
const;
This class implements a dynamic vector of AgeBandMatrix values.
Definition: agebandmatrixptrvector.h:12
Definition: agebandmatrixratioptrvector.h:16
This class implements a vector of PopInfoIndexVector values, indexed from minage not 0.
Definition: agebandmatrix.h:15
This is the class used to store information about the areas used for the current model.
Definition: areatime.h:18
This is the base class for any object that can be dynamically modelled within Gadget.
Definition: base.h:13
This is the class used to convert information from one LengthGroupDivision length structure to a seco...
Definition: conversionindex.h:12
This is the class used to calculate, and implement, the affect of growth on the stock.
Definition: grower.h:20
This is the class used to calculate the initial population of a stock.
Definition: initialcond.h:24
This is the class used to store information about the variables that are used in model simulation.
Definition: keeper.h:17
This is the class used to store information about the length groups of the modelled stock population.
Definition: lengthgroup.h:10
int areaNum(int area) const
This function will return the area associated with an internal area.
Definition: livesonareas.cc:33
This is the base class used to calculate the maturity of a stock within the model.
Definition: maturity.h:22
This is the base class used to calculate the migration of a stock within the model.
Definition: migration.h:22
This is the class used to calculate the affect of natural mortality on the stock.
Definition: naturalm.h:19
This class implements a dynamic vector of PopInfoVector values.
Definition: popinfomatrix.h:11
This class implements a dynamic vector of PopInfo values.
Definition: popinfovector.h:11
This is the class used to model the predation of a population.
Definition: poppredator.h:16
This is the class used to calculate the renewal to a stock.
Definition: renewal.h:16
This is the class used to calculate the affect of the spawning process on the stock,...
Definition: spawner.h:20
This is the class used to model a dynamic prey based on a modelled stock.
Definition: stockprey.h:11
This class implements a dynamic vector of Stock values.
Definition: stockptrvector.h:10
This is the class used to model a stock within the Gadget model.
Definition: stock.h:33
int doesRenew() const
This function will return the flag used to denote whether the stock will renew or not.
Definition: stock.h:248
const StockPtrVector & getTransitionStocks()
This will return the stocks that this stock will move in to.
Definition: stock.cc:497
int doesMature() const
This function will return the flag used to denote whether the stock will mature or not.
Definition: stock.h:243
virtual void updatePopulationPart4(int area, const TimeClass *const TimeInfo)
This function will calculate calculate the straying of the model population for an area in the model.
Definition: stockmemberfunctions.cc:194
StockPrey * getPrey() const
This will return the prey information for the stock.
Definition: stock.cc:473
const LengthGroupDivision * getLengthGroupDiv() const
This will return the length group information for the stock.
Definition: stock.h:202
Grower * grower
This is the Grower used to calculate information about the growth of the stock.
Definition: stock.h:409
InitialCond * initial
This is the InitialCond used to calculate information about the initial conditions of the stock.
Definition: stock.h:401
virtual void updatePopulationPart2(int area, const TimeClass *const TimeInfo)
This function will calculate add the newly matured stock into the model population for an area in the...
Definition: stockmemberfunctions.cc:174
int doesmove
This is the flag used to denote whether the stock will move or not.
Definition: stock.h:421
virtual void Grow(int area, const AreaClass *const Area, const TimeClass *const TimeInfo)
This function will calculate the growth of the model population for an area in the model.
Definition: stockmemberfunctions.cc:93
int doeseat
This is the flag used to denote whether the stock will eat (ie. is a Predator) or not.
Definition: stock.h:417
int doesmature
This is the flag used to denote whether the stock will mature or not.
Definition: stock.h:433
virtual void Reset(const TimeClass *const TimeInfo)
This function will reset the model population.
Definition: stock.cc:335
AgeBandMatrixRatioPtrVector tagAlkeys
This is the AgeBandMatrixRatioPtrVector used to store information about the tagged population from an...
Definition: stock.h:349
virtual ~Stock()
This is the default Stock destructor.
Definition: stock.cc:308
virtual void calcNumbers(int area, const TimeClass *const TimeInfo)
This function will update the model population for an area in the model.
Definition: stockmemberfunctions.cc:29
const StockPtrVector & getStrayStocks()
This will return the stocks that this stock will stray in to.
Definition: stock.cc:503
int birthdate
This is the timestep that the population will increase in age in the simulation.
Definition: stock.h:454
void setTagged()
This function will initialise the tagging experiments for the stock and any related stocks.
Definition: stock.cc:404
StrayData * stray
This is the StrayData used to calculate information about the straying of the stock.
Definition: stock.h:369
virtual void updateAgePart1(int area, const TimeClass *const TimeInfo)
This function will calculate any transition of the model population for an area in the model.
Definition: stockmemberfunctions.cc:133
TagPtrVector matureTags
This is the TagPtrVector used to store information about how the tagging experiments affect the popul...
Definition: stock.h:357
LengthGroupDivision * LgrpDiv
This is the LengthGroupDivision used to store length information.
Definition: stock.h:405
void setStock(StockPtrVector &stockvec)
This function will initialise the stock and set-up links to any related stocks.
Definition: stock.cc:364
int istagged
This is the flag used to denote whether the stock has been included in a tagging experiment or not.
Definition: stock.h:458
StockPrey * prey
This is the Prey used to calculate information about the consumption of the stock.
Definition: stock.h:393
PopPredator * getPredator() const
This will return the predation information for the stock.
Definition: stock.cc:485
int doesstray
This is the flag used to denote whether the stock will stray or not.
Definition: stock.h:449
virtual void updateAgePart2(int area, const TimeClass *const TimeInfo)
This function will calculate the age increase of the model population for an area in the model.
Definition: stockmemberfunctions.cc:142
int doesMove() const
This function will return the flag used to denote whether the stock will move or not.
Definition: stock.h:233
const StockPtrVector & getMatureStocks()
This will return the stocks that this stock will mature in to.
Definition: stock.cc:491
Stock(CommentStream &infile, const char *givenname, const AreaClass *const Area, const TimeClass *const TimeInfo, Keeper *const keeper)
This is the Stock constructor.
Definition: stock.cc:22
TagPtrVector transitionTags
This is the TagPtrVector used to store information about how the tagging experiments affect the popul...
Definition: stock.h:361
Transition * transition
This is the Transition used to calculate information about the movement of the stock.
Definition: stock.h:385
int doesEat() const
This function will return the flag used to denote whether the stock will eat or not.
Definition: stock.h:238
int isBirthday(const TimeClass *const TimeInfo) const
This function will check to see if the age of the stock should be increased on the current timestep o...
Definition: stock.cc:469
virtual void checkEat(int area, const TimeClass *const TimeInfo)
This function will check the modelled consumption for an area in the model.
Definition: stockmemberfunctions.cc:52
NaturalMortality * naturalm
This is the NaturalMortality used to calculate information about the natural mortality of the stock.
Definition: stock.h:413
int minAge() const
This will return the minimum age of the stock.
Definition: stock.h:276
double getTotalStockNumberAllAreas() const
This will return the total population size (in numbers) of the stock across all areas.
Definition: stockmemberfunctions.cc:287
int maxAge() const
This will return the maximum age of the stock.
Definition: stock.h:281
int doesrenew
This is the flag used to denote whether the stock will renew or not.
Definition: stock.h:437
void Add(const AgeBandMatrix &Addition, const ConversionIndex *const CI, int area, double ratio)
This function will add a AgeBandMatrix to the current stock population.
Definition: stockmemberfunctions.cc:219
virtual void reducePop(int area, const TimeClass *const TimeInfo)
This function will reduce the model population for an area in the model.
Definition: stockmemberfunctions.cc:63
virtual void updateAgePart3(int area, const TimeClass *const TimeInfo)
This function will implement the transiton of the model population for an area in the model.
Definition: stockmemberfunctions.cc:150
Migration * getMigration() const
This will return the migration information for the stock.
Definition: stock.cc:479
TagPtrVector strayTags
This is the TagPtrVector used to store information about how the tagging experiments affect the popul...
Definition: stock.h:365
void deleteTags(const char *tagname)
This function will remove a tagging experiment from the current tagged stock population.
Definition: stockmemberfunctions.cc:258
RenewalData * renewal
This is the RenewalData used to calculate information about the renewal of the stock.
Definition: stock.h:377
PopInfoMatrix tmpPopulation
This is the PopInfoMatrix used to temporarily store the population during the growth calculation.
Definition: stock.h:462
virtual void updatePopulationPart1(int area, const TimeClass *const TimeInfo)
This function will calculate the spawning of the model population for an area in the model.
Definition: stockmemberfunctions.cc:166
void Print(ofstream &outfile) const
This function will print the model population.
Definition: stock.cc:423
PopInfoVector tmpMigrate
This is the PopInfoVector used to temporarily store the population during the migration calculation.
Definition: stock.h:466
int doesgrow
This is the flag used to denote whether the stock will grow or not.
Definition: stock.h:441
AgeBandMatrix & getConsumptionALK(int area)
This will return the population of the stock on a given area at the start of the current timestep.
Definition: stock.cc:509
void addTags(AgeBandMatrixPtrVector *tagbyagelength, Tags *newtag, double tagloss)
This function will add details for a new tagging experiment on the current stock.
Definition: stockmemberfunctions.cc:237
TagPtrVector allTags
This is the TagPtrVector used to store information about the tagging experiments.
Definition: stock.h:353
int isTagged() const
This function will return the flag used to denote whether the stock has been tagged or not.
Definition: stock.h:263
virtual void updatePopulationPart3(int area, const TimeClass *const TimeInfo)
This function will calculate add the new recruits into the model population for an area in the model.
Definition: stockmemberfunctions.cc:186
virtual void calcEat(int area, const AreaClass *const Area, const TimeClass *const TimeInfo)
This function will calculate the modelled consumption for an area in the model.
Definition: stockmemberfunctions.cc:47
int iseaten
This is the flag used to denote whether the stock is eaten (ie. is a Prey) or not.
Definition: stock.h:425
AgeBandMatrix & getCurrentALK(int area)
This will return the current population of the stock on a given area.
Definition: stock.h:191
virtual void Migrate(const TimeClass *const TimeInfo)
This function will implement the migration of the model population for the model.
Definition: stockmemberfunctions.cc:18
int doesmigrate
This is the flag used to denote whether the stock will migrate or not.
Definition: stock.h:445
int doesMigrate() const
This function will return the flag used to denote whether the stock will migrate or not.
Definition: stock.h:258
Migration * migration
This is the Migration used to calculate information about the migration of the stock.
Definition: stock.h:389
virtual void updatePopulationPart5(int area, const TimeClass *const TimeInfo)
This function will calculate add the strayed stock into the model population for an area in the model...
Definition: stockmemberfunctions.cc:203
double getTotalStockBiomassAllAreas() const
This will return the total population biomass of the stock across all areas.
Definition: stockmemberfunctions.cc:325
int doesspawn
This is the flag used to denote whether the stock will spawn or not.
Definition: stock.h:429
PopPredator * predator
This is the PopPredator used to calculate information about the consumption by the stock.
Definition: stock.h:397
AgeBandMatrixPtrVector Alkeys
This is the AgeBandMatrixPtrVector used to store information about the stock population.
Definition: stock.h:345
int doesSpawn() const
This function will return the flag used to denote whether the stock will spawn or not.
Definition: stock.h:223
int isEaten() const
This function will return the flag used to denote whether the stock is eaten or not.
Definition: stock.h:218
void setTaggedStock()
This function will set the flag to denote that the stock has been tagged.
Definition: stock.h:267
double getTotalStockBiomass(int area) const
This will return the total population biomass of the stock on a given area.
Definition: stockmemberfunctions.cc:296
double getWeightedStockBiomassAllAreas(const FormulaVector ¶meters) const
This will return the selection weighted population biomass \of the stock in allareas return populatio...
Definition: stockmemberfunctions.cc:334
double getTotalStockNumber(int area) const
This will return the total population size (in numbers) of the stock on a given area.
Definition: stockmemberfunctions.cc:273
int doesStray() const
This function will return the flag used to denote whether the stock will stray or not.
Definition: stock.h:228
int doesGrow() const
This function will return the flag used to denote whether the stock will grow or not.
Definition: stock.h:253
Maturity * maturity
This is the Maturity used to calculate information about the maturation of the stock.
Definition: stock.h:381
double getWeightedStockBiomass(int area, const FormulaVector ¶meters) const
This will return the selection weighted population biomass \of the stock in one area return populatio...
Definition: stockmemberfunctions.cc:310
virtual void adjustEat(int area, const TimeClass *const TimeInfo)
This function will adjust the modelled consumption for an area in the model.
Definition: stockmemberfunctions.cc:57
SpawnData * spawner
This is the SpawnData used to calculate information about the spawning of the stock.
Definition: stock.h:373
This is the class used to calculate the movement from one stock to other stocks.
Definition: stray.h:19
This class implements a dynamic vector of Tags values.
Definition: tagptrvector.h:12
This is the class used to store information about the timesteps used for the current model.
Definition: areatime.h:87
This is the class used to calculate the movement from a young stock to older stocks.
Definition: transition.h:18