Implementation of a forecast netting algorithm. More...
#include <forecast.h>
Classes | |
struct | sorter |
Public Member Functions | |
bool | callback (Demand *l, const Signal a) |
ForecastSolver (const string &n) | |
virtual size_t | getSize () const |
virtual const MetaClass & | getType () const |
void | solve (const Demand *, void *=NULL) |
void | solve (void *v=NULL) |
void | writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const |
Static Public Member Functions | |
static int | initialize () |
Static Public Attributes | |
static const MetaClass * | metadata |
Friends | |
class | Forecast |
Implementation of a forecast netting algorithm.
As customer orders are being received they need to be deducted from the forecast to avoid double-counting demand.
The netting solver will process each order as follows:
The logging levels have the following meaning:
Definition at line 864 of file forecast.h.
module_forecast::ForecastSolver::ForecastSolver | ( | const string & | n | ) | [inline] |
Constructor.
Definition at line 869 of file forecast.h.
Callback function, used for netting orders against the forecast.
Definition at line 46 of file forecastsolver.cpp.
virtual size_t module_forecast::ForecastSolver::getSize | ( | ) | const [inline, virtual] |
Return the memory size of the object in bytes.
Implements frepple::utils::Object.
Definition at line 883 of file forecast.h.
virtual const MetaClass& module_forecast::ForecastSolver::getType | ( | ) | const [inline, virtual] |
This returns the type information on the object, a bit similar to the standard type_info information.
Reimplemented from frepple::Solver.
Definition at line 881 of file forecast.h.
int module_forecast::ForecastSolver::initialize | ( | ) | [static] |
Reimplemented from frepple::Solver.
Definition at line 35 of file forecastsolver.cpp.
void module_forecast::ForecastSolver::solve | ( | void * | v = NULL |
) | [virtual] |
This is the main solver method that will appropriately call the other solve methods.
Implements frepple::Solver.
Definition at line 104 of file forecastsolver.cpp.
void module_forecast::ForecastSolver::solve | ( | const Demand * | l, | |
void * | v = NULL | |||
) | [virtual] |
This method handles the search for a matching forecast, followed by decreasing the net forecast.
Reimplemented from frepple::Solver.
Definition at line 75 of file forecastsolver.cpp.
void module_forecast::ForecastSolver::writeElement | ( | XMLOutput * | , | |
const Keyword & | , | |||
mode | = DEFAULT | |||
) | const [virtual] |
Called while writing the model into an XML-file. The user class should write itself out, using the IOutStream members for its "simple" members and calling writeElement recursively for any contained objects. Not all classes are expected to implement this method. In instances of such a class can be created but can't be persisted. E.g. Command
Reimplemented from frepple::Solver.
Definition at line 56 of file forecastsolver.cpp.
friend class Forecast [friend] |
Definition at line 866 of file forecast.h.
const MetaClass * module_forecast::ForecastSolver::metadata [static] |
Reimplemented from frepple::Solver.
Definition at line 882 of file forecast.h.