This class allows upstream and downstream navigation through the plan. More...
#include <model.h>
Classes | |
struct | state |
Public Member Functions | |
virtual void | endElement (XMLInput &i, const Attribute &a, const DataElement &d) |
Buffer * | getBuffer () const |
Date | getConsumingDate () const |
OperationPlan * | getConsumingOperationplan () const |
double | getFactor () const |
short | getLevel () const |
bool | getPegged () const |
Date | getProducingDate () const |
OperationPlan * | getProducingOperationplan () const |
double | getQuantityBuffer () const |
double | getQuantityDemand () const |
size_t | getSize () const |
virtual const MetaClass & | getType () const |
bool | isDownstream () |
operator bool () const | |
bool | operator!= (const PeggingIterator &x) const |
PeggingIterator & | operator++ () |
PeggingIterator | operator++ (int) |
PeggingIterator & | operator-- () |
PeggingIterator | operator-- (int) |
bool | operator== (const PeggingIterator &x) const |
PeggingIterator (const Demand *e) | |
PeggingIterator (const FlowPlan *e, bool b=true) | |
void | updateStack (short, double, double, const FlowPlan *, const FlowPlan *, bool=true) |
![]() | |
virtual void | beginElement (XMLInput &, const Attribute &) |
virtual bool | getHidden () const |
Object () | |
virtual void | setHidden (bool b) |
virtual void | writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const |
virtual | ~Object () |
![]() | |
virtual PyObject * | call (const PythonObject &args, const PythonObject &kwds) |
virtual int | compare (const PyObject *other) const |
Py_ssize_t | getReferenceCount () const |
void | initType (const MetaClass *t) |
void | initType (PyTypeObject *t) |
PythonExtensionBase () | |
void | resetReferenceCount () |
virtual int | setattro (const Attribute &attr, const PythonObject &field) |
virtual PyObject * | str () const |
virtual | ~PythonExtensionBase () |
Static Public Member Functions | |
static int | initialize () |
![]() | |
template<class T > | |
static PyObject * | create (PyTypeObject *pytype, PyObject *args, PyObject *kwds) |
template<class T > | |
static Object * | createDefault () |
template<class T > | |
static Object * | createString (const string &n) |
static PyObject * | toXML (PyObject *, PyObject *) |
Static Public Attributes | |
static const MetaCategory * | metadata |
This class allows upstream and downstream navigation through the plan.
Downstream navigation follows the material flow from raw materials towards the produced end item.
Upstream navigation traces back the material flow from the end item up to the consumed raw materials.
The class is implemented as an STL-like iterator.
frepple::PeggingIterator::PeggingIterator | ( | const Demand * | e | ) |
Constructor.
Definition at line 46 of file pegging.cpp.
|
inline |
|
inlinevirtual |
Called while restoring the model from an XML-file.
This is called when the corresponding close element tag is encountered, and the Data() member of pElement is valid.
Implements frepple::utils::Object.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Return the memory size of the object in bytes.
Implements frepple::utils::Object.
|
inlinevirtual |
This returns the type information on the object, a bit similar to the standard type_info information.
Implements frepple::utils::Object.
|
static |
Initialize the class.
Definition at line 30 of file pegging.cpp.
|
inline |
|
inline |
|
inline |
PeggingIterator & frepple::PeggingIterator::operator++ | ( | ) |
Move the iterator foward to the next downstream flowplan.
Definition at line 84 of file pegging.cpp.
|
inline |
PeggingIterator & frepple::PeggingIterator::operator-- | ( | ) |
Move the iterator foward to the next upstream flowplan.
Definition at line 115 of file pegging.cpp.
|
inline |
|
inline |
void frepple::PeggingIterator::updateStack | ( | short | l, |
double | q, | ||
double | f, | ||
const FlowPlan * | fc, | ||
const FlowPlan * | fp, | ||
bool | p = true |
||
) |
Update the stack.
Definition at line 61 of file pegging.cpp.
|
static |