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) |
Static Public Member Functions | |
static int | initialize () |
Static Public Attributes | |
static const MetaCategory * | metadata |
Detailed Description
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.
Constructor & Destructor Documentation
frepple::PeggingIterator::PeggingIterator | ( | const Demand * | e | ) |
Constructor.
Definition at line 53 of file pegging.cpp.
frepple::PeggingIterator::PeggingIterator | ( | const FlowPlan * | e, |
bool | b = true |
||
) | [inline] |
Member Function Documentation
virtual void frepple::PeggingIterator::endElement | ( | XMLInput & | , |
const Attribute & | , | ||
const DataElement & | |||
) | [inline, virtual] |
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.
Buffer* frepple::PeggingIterator::getBuffer | ( | ) | const [inline] |
Date frepple::PeggingIterator::getConsumingDate | ( | ) | const [inline] |
OperationPlan* frepple::PeggingIterator::getConsumingOperationplan | ( | ) | const [inline] |
double frepple::PeggingIterator::getFactor | ( | ) | const [inline] |
short frepple::PeggingIterator::getLevel | ( | ) | const [inline] |
bool frepple::PeggingIterator::getPegged | ( | ) | const [inline] |
Date frepple::PeggingIterator::getProducingDate | ( | ) | const [inline] |
OperationPlan* frepple::PeggingIterator::getProducingOperationplan | ( | ) | const [inline] |
double frepple::PeggingIterator::getQuantityBuffer | ( | ) | const [inline] |
double frepple::PeggingIterator::getQuantityDemand | ( | ) | const [inline] |
size_t frepple::PeggingIterator::getSize | ( | ) | const [inline, virtual] |
Return the memory size of the object in bytes.
Implements frepple::utils::Object.
virtual const MetaClass& frepple::PeggingIterator::getType | ( | ) | const [inline, virtual] |
This returns the type information on the object, a bit similar to the standard type_info information.
Implements frepple::utils::Object.
int frepple::PeggingIterator::initialize | ( | ) | [static] |
Initialize the class.
Definition at line 37 of file pegging.cpp.
bool frepple::PeggingIterator::isDownstream | ( | ) | [inline] |
frepple::PeggingIterator::operator bool | ( | ) | const [inline] |
bool frepple::PeggingIterator::operator!= | ( | const PeggingIterator & | x | ) | const [inline] |
PeggingIterator & frepple::PeggingIterator::operator++ | ( | ) |
Move the iterator foward to the next downstream flowplan.
Definition at line 91 of file pegging.cpp.
PeggingIterator frepple::PeggingIterator::operator++ | ( | int | ) | [inline] |
PeggingIterator & frepple::PeggingIterator::operator-- | ( | ) |
Move the iterator foward to the next upstream flowplan.
Definition at line 122 of file pegging.cpp.
PeggingIterator frepple::PeggingIterator::operator-- | ( | int | ) | [inline] |
bool frepple::PeggingIterator::operator== | ( | const PeggingIterator & | x | ) | const [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 68 of file pegging.cpp.
Member Data Documentation
const MetaCategory * frepple::PeggingIterator::metadata [static] |
The documentation for this class was generated from the following files:
Documentation generated for frePPLe by
