module_forecast::ForecastSolver Class Reference

Implementation of a forecast netting algorithm. More...

#include <forecast.h>

Inheritance diagram for module_forecast::ForecastSolver:
frepple::Solver frepple::utils::HasName< Solver > frepple::utils::NonCopyable frepple::utils::Tree::TreeNode frepple::utils::Object frepple::utils::PythonExtensionBase

List of all members.

Classes

struct  sorter

Public Member Functions

bool callback (Demand *l, const Signal a)
 ForecastSolver (const string &n)
virtual size_t getSize () const
virtual const MetaClassgetType () const
void solve (void *v=NULL)
void solve (const Demand *, void *=NULL)
void writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const

Static Public Member Functions

static int initialize ()

Static Public Attributes

static const MetaClassmetadata

Friends

class Forecast

Detailed Description

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.


Constructor & Destructor Documentation

module_forecast::ForecastSolver::ForecastSolver ( const string &  n  )  [inline]

Constructor.

Definition at line 869 of file forecast.h.


Member Function Documentation

bool module_forecast::ForecastSolver::callback ( Demand l,
const Signal  a 
)

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.


Friends And Related Function Documentation

friend class Forecast [friend]

Definition at line 866 of file forecast.h.


Member Data Documentation

Reimplemented from frepple::Solver.

Definition at line 882 of file forecast.h.


The documentation for this class was generated from the following files:

Generated on 16 Apr 2010 for frePPLe by  doxygen 1.6.1