An item defines the products being planned, sold, stored and/or manufactured. Buffers and demands have a reference an item.
More...
List of all members.
Detailed Description
An item defines the products being planned, sold, stored and/or manufactured. Buffers and demands have a reference an item.
This is an abstract class.
Definition at line 2765 of file model.h.
Constructor & Destructor Documentation
frepple::Item::Item |
( |
const string & |
str |
) |
[inline, explicit] |
Constructor. Don't use this directly!
Definition at line 2769 of file model.h.
frepple::Item::~Item |
( |
|
) |
[virtual] |
Destructor.
Definition at line 60 of file item.cpp.
Member Function Documentation
PyObject * frepple::Item::getattro |
( |
const Attribute & |
attr |
) |
[virtual] |
Operation* frepple::Item::getOperation |
( |
|
) |
const [inline] |
Returns the delivery operation.
This field is inherited from a parent item, if it hasn't been specified.
Definition at line 2776 of file model.h.
double frepple::Item::getPrice |
( |
|
) |
const [inline] |
Return the selling price of the item.
The default value is 0.0.
Definition at line 2798 of file model.h.
virtual const MetaClass& frepple::Item::getType |
( |
|
) |
const [inline, virtual] |
int frepple::Item::initialize |
( |
|
) |
[static] |
void frepple::Item::setOperation |
( |
Operation * |
o |
) |
[inline] |
Updates the delivery operation.
If some demands have already been planned using the old delivery operation they are left untouched and won't be replanned.
Definition at line 2793 of file model.h.
void frepple::Item::setPrice |
( |
const double |
c |
) |
[inline] |
Update the selling price of the item.
Definition at line 2801 of file model.h.
void frepple::Item::writeElement |
( |
XMLOutput * |
o, |
|
|
const Keyword & |
tag, |
|
|
mode |
m = DEFAULT | |
|
) |
| | const [virtual] |
Member Data Documentation
The documentation for this class was generated from the following files: