|
Gadget
|
This is the class used to aggregate predation information. More...
#include <predatoraggregator.h>

Public Member Functions | |
| PredatorAggregator (const PredatorPtrVector &predators, const PreyPtrVector &preys, const IntMatrix &Areas, const LengthGroupDivision *const predLgrpDiv, const LengthGroupDivision *const preyLgrpDiv) | |
| This is the PredatorAggregator constructor for length based predators. More... | |
| PredatorAggregator (const PredatorPtrVector &predators, const PreyPtrVector &preys, const IntMatrix &Areas, const IntMatrix &predAges, const LengthGroupDivision *const preyLgrpDiv) | |
| This is the PredatorAggregator constructor for age based predators. More... | |
| ~PredatorAggregator () | |
| This is the default PredatorAggregator destructor. More... | |
| void | Print (ofstream &outfile) const |
| This will print the aggregator information to the ofstream specified. More... | |
| void | Reset () |
| This function will reset the predation data. More... | |
| void | Sum () |
| This function will aggregate the predation biomass data. More... | |
| void | NumberSum () |
| This function will aggregate the predation number data. More... | |
| const DoubleMatrixPtrVector & | getSum () const |
| This will return the DoubleMatrixPtrVector containing the aggregated predation information. More... | |
Protected Attributes | |
| PredatorPtrVector | predators |
| This is the PredatorPtrVector of the predators that will be aggregated. More... | |
| PreyPtrVector | preys |
| This is the PreyPtrVector of the preys that will be aggregated. More... | |
| IntMatrix | predConv |
| This is the IntMatrix used to convert length group information for predators. More... | |
| IntMatrix | preyConv |
| This is the IntMatrix used to convert length group information for preys. More... | |
| IntMatrix | areas |
| This is the IntMatrix used to store area information. More... | |
| IntMatrix | doeseat |
| This is the IntMatrix used to store predation information. More... | |
| DoubleMatrixPtrVector | total |
| This is the DoubleMatrixPtrVector used to store the aggregated predation information. More... | |
| const DoubleMatrix * | dptr |
| This is the DoubleMatrix used to temporarily store information when aggregating the predation. More... | |
| const AgeBandMatrix * | alk |
| This is the AgeBandMatrix used to temporarily store information when aggregating the predation. More... | |
| int | usepredages |
| This is the flag used to denote whether the predators are specified using age groups or length groups. More... | |
This is the class used to aggregate predation information.
| PredatorAggregator::PredatorAggregator | ( | const PredatorPtrVector & | predators, |
| const PreyPtrVector & | preys, | ||
| const IntMatrix & | Areas, | ||
| const LengthGroupDivision *const | predLgrpDiv, | ||
| const LengthGroupDivision *const | preyLgrpDiv | ||
| ) |
This is the PredatorAggregator constructor for length based predators.
| predators | is the PredatorPtrVector of the predators that will be aggregated |
| preys | is the PreyPtrVector of the preys that will be aggregated |
| Areas | is the IntMatrix of areas that the predation can take place on |
| predLgrpDiv | is the LengthGroupDivision of the predators |
| preyLgrpDiv | is the LengthGroupDivision of the preys |
| PredatorAggregator::PredatorAggregator | ( | const PredatorPtrVector & | predators, |
| const PreyPtrVector & | preys, | ||
| const IntMatrix & | Areas, | ||
| const IntMatrix & | predAges, | ||
| const LengthGroupDivision *const | preyLgrpDiv | ||
| ) |
This is the PredatorAggregator constructor for age based predators.
| predators | is the PredatorPtrVector of the predators that will be aggregated |
| preys | is the PreyPtrVector of the preys that will be aggregated |
| Areas | is the IntMatrix of areas that the predation can take place on |
| predAges | is the IntMatrix of the predator ages |
| preyLgrpDiv | is the LengthGroupDivision of the preys |
| PredatorAggregator::~PredatorAggregator | ( | ) |
This is the default PredatorAggregator destructor.
|
inline |
This will return the DoubleMatrixPtrVector containing the aggregated predation information.
| void PredatorAggregator::NumberSum | ( | ) |
This function will aggregate the predation number data.
| void PredatorAggregator::Print | ( | ofstream & | outfile | ) | const |
This will print the aggregator information to the ofstream specified.
| outfile | is the ofstream to the file that the aggregator information gets sent to |
| void PredatorAggregator::Reset | ( | ) |
This function will reset the predation data.
| void PredatorAggregator::Sum | ( | ) |
This function will aggregate the predation biomass data.
|
protected |
This is the AgeBandMatrix used to temporarily store information when aggregating the predation.
|
protected |
This is the IntMatrix used to store predation information.
|
protected |
This is the DoubleMatrix used to temporarily store information when aggregating the predation.
|
protected |
This is the PredatorPtrVector of the predators that will be aggregated.
|
protected |
This is the IntMatrix used to convert length group information for predators.
|
protected |
This is the IntMatrix used to convert length group information for preys.
|
protected |
This is the PreyPtrVector of the preys that will be aggregated.
|
protected |
This is the DoubleMatrixPtrVector used to store the aggregated predation information.
|
protected |
This is the flag used to denote whether the predators are specified using age groups or length groups.