frepple::PeggingIterator Class Reference
This class allows upstream and downstream navigation through the plan.
More...
#include <model.h>
List of all members.
Detailed Description
This class allows upstream and downstream navigation through the plan.
Downstream navigation follows the material stream from raw materials towards the end item demand.
Upstream navigation traces back the material flow from the end item till the raw materials.
The class is implemented as an STL-like iterator.
Definition at line 4948 of file model.h.
Constructor & Destructor Documentation
| frepple::PeggingIterator::PeggingIterator |
( |
const Demand * |
e |
) |
|
| frepple::PeggingIterator::PeggingIterator |
( |
const FlowPlan * |
e, |
|
|
bool |
b = true | |
|
) |
| | [inline] |
Member Function Documentation
| Buffer* frepple::PeggingIterator::getBuffer |
( |
|
) |
const [inline] |
Return the material buffer through which we are pegging.
Definition at line 4972 of file model.h.
| Date frepple::PeggingIterator::getConsumingDate |
( |
|
) |
const [inline] |
Return the date when the material is consumed.
Definition at line 4987 of file model.h.
| OperationPlan* frepple::PeggingIterator::getConsumingOperationplan |
( |
|
) |
const [inline] |
Return the operationplan consuming the material.
Definition at line 4965 of file model.h.
| double frepple::PeggingIterator::getFactor |
( |
|
) |
const [inline] |
Returns which portion of the current flowplan is fed/supplied by the original flowplan.
Definition at line 5024 of file model.h.
| short frepple::PeggingIterator::getLevel |
( |
|
) |
const [inline] |
Returns the recursion depth of the iterator. The original flowplan is at level 0, and each level (either upstream or downstream) increments the value by 1.
Definition at line 5004 of file model.h.
| bool frepple::PeggingIterator::getPegged |
( |
|
) |
const [inline] |
Returns false if the flowplan remained unpegged, i.e. it wasn't -either completely or paritally- unconsumed at the next level.
Definition at line 5029 of file model.h.
| Date frepple::PeggingIterator::getProducingDate |
( |
|
) |
const [inline] |
Return the date when the material is produced.
Definition at line 4994 of file model.h.
| OperationPlan* frepple::PeggingIterator::getProducingOperationplan |
( |
|
) |
const [inline] |
Return the operationplan producing the material.
Definition at line 4980 of file model.h.
| double frepple::PeggingIterator::getQuantityBuffer |
( |
|
) |
const [inline] |
Returns the quantity of the buffer flowplans that is linked to this pegging record.
Definition at line 5014 of file model.h.
| double frepple::PeggingIterator::getQuantityDemand |
( |
|
) |
const [inline] |
Returns the quantity of the demand that is linked to this pegging record.
Definition at line 5009 of file model.h.
| bool frepple::PeggingIterator::isDownstream |
( |
|
) |
[inline] |
Returns true if this is a downstream iterator.
Definition at line 5067 of file model.h.
| frepple::PeggingIterator::operator bool |
( |
|
) |
const [inline] |
Conversion operator to a boolean value. The return value is true when the iterator still has next elements to explore. Returns false when the iteration is finished.
Definition at line 5061 of file model.h.
| bool frepple::PeggingIterator::operator!= |
( |
const PeggingIterator & |
x |
) |
const [inline] |
Inequality operator.
Definition at line 5055 of file model.h.
Move the iterator foward to the next downstream flowplan.
This post-increment operator is less efficient than the pre-increment operator.
Definition at line 5038 of file model.h.
Move the iterator foward to the next downstream flowplan.
Definition at line 68 of file pegging.cpp.
Move the iterator foward to the next upstream flowplan.
This post-increment operator is less efficient than the pre-decrement operator.
Definition at line 5048 of file model.h.
Move the iterator foward to the next upstream flowplan.
Definition at line 99 of file pegging.cpp.
| bool frepple::PeggingIterator::operator== |
( |
const PeggingIterator & |
x |
) |
const [inline] |
Comparison operator.
Definition at line 5052 of file model.h.
| void frepple::PeggingIterator::updateStack |
( |
short |
l, |
|
|
double |
q, |
|
|
double |
f, |
|
|
const FlowPlan * |
fc, |
|
|
const FlowPlan * |
fp, |
|
|
bool |
p = true | |
|
) |
| | |
The documentation for this class was generated from the following files: