Gadget
|
This is the class used to aggregate the calculated overconsumption by predators. More...
#include <predatoroveraggregator.h>
Public Member Functions | |
PredatorOverAggregator (const PredatorPtrVector &predators, const IntMatrix &Areas, const LengthGroupDivision *const LgrpDiv) | |
This is the PredatorOverAggregator constructor. More... | |
~PredatorOverAggregator () | |
This is the default PredatorOverAggregator destructor. More... | |
void | Reset () |
This will reset the predator overconsumption information. More... | |
void | Sum () |
This will aggregate the predator overconsumption that has taken place. More... | |
const DoubleMatrix & | getSum () const |
This will return the calculated overconsumption. More... | |
Protected Attributes | |
PredatorPtrVector | predators |
This is the PredatorPtrVector of predators that will be aggregated. More... | |
IntMatrix | predConv |
This is the IntMatrix of length groups of the predators. More... | |
IntMatrix | areas |
This is the IntMatrix used to store area information. 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 by predators.
PredatorOverAggregator::PredatorOverAggregator | ( | const PredatorPtrVector & | predators, |
const IntMatrix & | Areas, | ||
const LengthGroupDivision *const | LgrpDiv | ||
) |
This is the PredatorOverAggregator constructor.
predators | is the PredatorPtrVector of the predators that will be aggregated |
Areas | is the IntMatrix of areas that the overconsumption can occur on |
LgrpDiv | is the LengthGroupDivision for the predators |
|
inline |
This is the default PredatorOverAggregator destructor.
|
inline |
This will return the calculated overconsumption.
void PredatorOverAggregator::Reset | ( | ) |
This will reset the predator overconsumption information.
void PredatorOverAggregator::Sum | ( | ) |
This will aggregate the predator overconsumption that has taken place.
|
protected |
This is the IntMatrix used to store area information.
|
protected |
This is the PredatorPtrVector of predators that will be aggregated.
|
protected |
This is the IntMatrix of length groups of the predators.
|
protected |
This is the DoubleMatrix of the overconsumption that has taken place.