Gadget
|
This is the class used to aggregate predator-prey information. More...
#include <predatorpreyaggregator.h>
Public Member Functions | |
PredatorPreyAggregator (const PredatorPtrVector &Predators, const PreyPtrVector &Preys, LengthGroupDivision *const Lgrpdiv, const IntMatrix &Areas, const IntMatrix &Ages) | |
This is the PredatorPreyAggregator constructor. More... | |
~PredatorPreyAggregator () | |
This is the default PredatorPreyAggregator destructor. More... | |
void | Reset () |
This function will reset the predation information. More... | |
void | Sum (const TimeClass *const TimeInfo) |
This function will aggregate the predation data. More... | |
const AgeBandMatrixPtrVector & | getConsumption () const |
This will return the AgeBandMatrixPtrVector containing the aggregated predation information. More... | |
const DoubleMatrixPtrVector & | getMortality () const |
This will return the DoubleMatrixPtrVector containing the aggregated mortality information. More... | |
This is the class used to aggregate predator-prey information.
PredatorPreyAggregator::PredatorPreyAggregator | ( | const PredatorPtrVector & | Predators, |
const PreyPtrVector & | Preys, | ||
LengthGroupDivision *const | Lgrpdiv, | ||
const IntMatrix & | Areas, | ||
const IntMatrix & | Ages | ||
) |
This is the PredatorPreyAggregator constructor.
Predators | is the PredatorPtrVector of the predators that will be aggregated |
Preys | is the PreyPtrVector of the preys that will be aggregated |
Lgrpdiv | is the LengthGroupDivision of the preys |
Areas | is the IntMatrix of areas that the predation can take place on |
Ages | is the IntMatrix of ages of the preys |
PredatorPreyAggregator::~PredatorPreyAggregator | ( | ) |
This is the default PredatorPreyAggregator destructor.
|
inline |
This will return the AgeBandMatrixPtrVector containing the aggregated predation information.
|
inline |
This will return the DoubleMatrixPtrVector containing the aggregated mortality information.
void PredatorPreyAggregator::Reset | ( | ) |
This function will reset the predation information.
void PredatorPreyAggregator::Sum | ( | const TimeClass *const | TimeInfo | ) |
This function will aggregate the predation data.
TimeInfo | is the TimeClass for the current model |