Gadget
|
This is the class used to aggregate stock information. More...
#include <stockaggregator.h>
Public Member Functions | |
StockAggregator (const StockPtrVector &Stocks, const LengthGroupDivision *const LgrpDiv, const IntMatrix &Areas, const IntMatrix &Ages) | |
This is the StockAggregator constructor. More... | |
~StockAggregator () | |
This is the default StockAggregator destructor. More... | |
void | Reset () |
This function will reset the stock data. More... | |
void | Sum () |
This function will aggregate the stock data. More... | |
const AgeBandMatrixPtrVector & | getSum () const |
This will return the AgeBandMatrixPtrVector containing the aggregated stock information. More... | |
void | Print (ofstream &outfile) const |
This will print the aggregator information to the ofstream specified. More... | |
Protected Attributes | |
StockPtrVector | stocks |
This is the StockPtrVector of the stocks that will be aggregated. More... | |
ConversionIndexPtrVector | CI |
This is the ConversionIndexPtrVector used to convert the length groups of the stocks to be aggregated. More... | |
IntMatrix | areas |
This is the IntMatrix used to store area information. More... | |
IntMatrix | ages |
This is the IntMatrix used to store age information. More... | |
AgeBandMatrixPtrVector | total |
This is the AgeBandMatrixPtrVector used to store the aggregated stock information. More... | |
const AgeBandMatrix * | alptr |
This is the AgeBandMatrix used to temporarily store information when aggregating the stocks. More... | |
This is the class used to aggregate stock information.
StockAggregator::StockAggregator | ( | const StockPtrVector & | Stocks, |
const LengthGroupDivision *const | LgrpDiv, | ||
const IntMatrix & | Areas, | ||
const IntMatrix & | Ages | ||
) |
This is the StockAggregator constructor.
Stocks | is the StockPtrVector of the stocks that will be aggregated |
LgrpDiv | is the LengthGroupDivision that the stocks will be aggregated to |
Areas | is the IntMatrix of areas that the stocks to be aggregated live on |
Ages | is the IntMatrix of ages of the stocks to be aggregated |
StockAggregator::~StockAggregator | ( | ) |
This is the default StockAggregator destructor.
|
inline |
This will return the AgeBandMatrixPtrVector containing the aggregated stock information.
void StockAggregator::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 StockAggregator::Reset | ( | ) |
This function will reset the stock data.
void StockAggregator::Sum | ( | ) |
This function will aggregate the stock data.
|
protected |
This is the AgeBandMatrix used to temporarily store information when aggregating the stocks.
|
protected |
This is the ConversionIndexPtrVector used to convert the length groups of the stocks to be aggregated.
|
protected |
This is the StockPtrVector of the stocks that will be aggregated.
|
protected |
This is the AgeBandMatrixPtrVector used to store the aggregated stock information.