A flowplan represents a planned material flow in or out of a buffer. More...
#include <model.h>
Public Member Functions | |
FlowPlan (OperationPlan *, const Flow *) | |
const Buffer * | getBuffer () const |
const Flow * | getFlow () const |
bool | getHidden () const |
OperationPlan * | getOperationPlan () const |
TimeLine< FlowPlan > * | getTimeLine () const |
void | setFlow (const Flow *) |
void | setQuantity (double qty, bool b=false, bool u=true) |
void | update () |
void | writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const |
virtual | ~FlowPlan () |
![]() | |
EventChangeOnhand (double qty=0.0) | |
double | getQuantity () const |
virtual unsigned short | getType () const |
![]() | |
double | getCumulativeConsumed () const |
double | getCumulativeProduced () const |
const Date & | getDate () const |
virtual double | getMax (bool inclusive=true) const |
virtual double | getMin (bool inclusive=true) const |
double | getOnhand () const |
bool | operator< (const Event &fl2) const |
virtual | ~Event () |
![]() | |
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) |
virtual PyObject * | iternext () |
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 () |
Static Public Attributes | |
static const MetaCategory * | metadata |
Friends | |
class | OperationPlan::FlowPlanIterator |
Additional Inherited Members | |
![]() | |
static PythonType * | registerPythonType (int, const type_info *) |
![]() | |
static vector< PythonType * > | table |
A flowplan represents a planned material flow in or out of a buffer.
Flowplans are owned by operationplans, which manage a container to store them.
|
explicit |
Constructor.
Definition at line 44 of file flowplan.cpp.
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
Return a pointer to the timeline data structure owning this flowplan.
Reimplemented from frepple::utils::TimeLine< type >::Event.
|
static |
Definition at line 29 of file flowplan.cpp.
void frepple::FlowPlan::setFlow | ( | const Flow * | newfl | ) |
Update the flow of an already existing flowplan.
The new flow must belong to the same operation.
Definition at line 96 of file flowplan.cpp.
|
inline |
void frepple::FlowPlan::update | ( | ) |
This function needs to be called whenever the flowplan date or quantity are changed.
Definition at line 80 of file flowplan.cpp.
Writing the element. This method has the same prototype as a usual instance of the Object class, but this is only superficial: FlowPlan isn't a subclass of Object at all.
Definition at line 127 of file flowplan.cpp.
|
friend |
|
static |