Gadget
|
This is the class used to aggregate the calculated overconsumption of preys. More...
#include <preyoveraggregator.h>
Public Member Functions | |
PreyOverAggregator (const PreyPtrVector &preys, const IntMatrix &Areas, const LengthGroupDivision *const LgrpDiv) | |
This is the PreyOverAggregator constructor. More... | |
~PreyOverAggregator () | |
This is the default PreyOverAggregator destructor. More... | |
void | Reset () |
This will reset the prey overconsumption information. More... | |
void | Sum () |
This will aggregate the prey overconsumption that has taken place. More... | |
const DoubleMatrix & | getSum () const |
This will return the calculated overconsumption. More... | |
Protected Attributes | |
PreyPtrVector | preys |
This is the PreyPtrVector of preys that will be aggregated. More... | |
IntMatrix | preyConv |
This is the IntMatrix of length groups of the preys. More... | |
IntMatrix | areas |
This will aggregate the predator overconsumption that has taken place. More... | |
DoubleMatrix | total |
This is the DoubleMatrix of the overconsumption that has taken place. More... | |
This is the class used to aggregate the calculated overconsumption of preys.
PreyOverAggregator::PreyOverAggregator | ( | const PreyPtrVector & | preys, |
const IntMatrix & | Areas, | ||
const LengthGroupDivision *const | LgrpDiv | ||
) |
This is the PreyOverAggregator constructor.
preys | is the PreyPtrVector of the preys that will be aggregated |
Areas | is the IntMatrix of areas that the overconsumption can occur on |
LgrpDiv | is the LengthGroupDivision for the preys |
|
inline |
This is the default PreyOverAggregator destructor.
|
inline |
This will return the calculated overconsumption.
void PreyOverAggregator::Reset | ( | ) |
This will reset the prey overconsumption information.
void PreyOverAggregator::Sum | ( | ) |
This will aggregate the prey overconsumption that has taken place.
|
protected |
This will aggregate the predator overconsumption that has taken place.
|
protected |
This is the IntMatrix of length groups of the preys.
|
protected |
This is the PreyPtrVector of preys that will be aggregated.
|
protected |
This is the DoubleMatrix of the overconsumption that has taken place.