List of all members.
Public Member Functions |
void | beginElement (XMLInput &, const Attribute &) |
void | endElement (XMLInput &, const Attribute &, const DataElement &) |
Load * | getAlternate () const |
PyObject * | getattro (const Attribute &) |
bool | getHidden () const |
virtual Date | getLoadplanDate (const LoadPlan *) const |
virtual double | getLoadplanQuantity (const LoadPlan *) const |
Operation * | getOperation () const |
int | getPriority () const |
double | getQuantity () const |
Resource * | getResource () const |
SearchMode | getSearch () const |
const string & | getSetup () const |
virtual size_t | getSize () const |
virtual const MetaClass & | getType () const |
bool | hasAlternates () const |
| Load () |
| Load (Operation *o, Resource *r, double u) |
void | setAlternate (const string &n) |
void | setAlternate (Load *) |
int | setattro (const Attribute &, const PythonObject &) |
void | setOperation (Operation *o) |
void | setPriority (int i) |
void | setQuantity (double f) |
void | setResource (Resource *r) |
void | setSearch (const string a) |
void | setSetup (const string) |
virtual void | solve (Solver &s, void *v=NULL) const |
virtual void | writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const |
| ~Load () |
Static Public Member Functions |
static int | initialize () |
static void | writer (const MetaCategory *, XMLOutput *) |
Static Public Attributes |
static const MetaCategory * | metadata |
Friends |
class | Operation |
class | Resource |
Detailed Description
This class links a resource to a certain operation.
Definition at line 3974 of file model.h.
Constructor & Destructor Documentation
frepple::Load::Load |
( |
|
) |
[inline] |
Default constructor.
Definition at line 4076 of file model.h.
Member Function Documentation
Load* frepple::Load::getAlternate |
( |
|
) |
const [inline] |
Returns the load of which this one is an alternate.
NULL is return where there is none.
Definition at line 4035 of file model.h.
PyObject * frepple::Load::getattro |
( |
const Attribute & |
attr |
) |
|
bool frepple::Load::getHidden |
( |
|
) |
const [inline] |
Date frepple::Load::getLoadplanDate |
( |
const LoadPlan * |
lp |
) |
const [inline, virtual] |
This method holds the logic the compute the date of a loadplan.
Definition at line 4797 of file model.h.
double frepple::Load::getLoadplanQuantity |
( |
const LoadPlan * |
lp |
) |
const [inline, virtual] |
This method holds the logic the compute the quantity of a loadplan.
Definition at line 4811 of file model.h.
Operation* frepple::Load::getOperation |
( |
|
) |
const [inline] |
Returns the operation consuming the resource capacity.
Definition at line 3997 of file model.h.
int frepple::Load::getPriority |
( |
|
) |
const [inline] |
Return the priority of a load.
Definition at line 4027 of file model.h.
double frepple::Load::getQuantity |
( |
|
) |
const [inline] |
Returns how much capacity is consumed during the duration of the operationplan.
Definition at line 4012 of file model.h.
Resource* frepple::Load::getResource |
( |
|
) |
const [inline] |
Returns the capacity resource being consumed.
Definition at line 4004 of file model.h.
SearchMode frepple::Load::getSearch |
( |
|
) |
const [inline] |
Return the search mode.
Definition at line 4080 of file model.h.
const string& frepple::Load::getSetup |
( |
|
) |
const [inline] |
Return the required resource setup.
Definition at line 4047 of file model.h.
virtual size_t frepple::Load::getSize |
( |
|
) |
const [inline, virtual] |
virtual const MetaClass& frepple::Load::getType |
( |
|
) |
const [inline, virtual] |
bool frepple::Load::hasAlternates |
( |
|
) |
const [inline] |
Returns true if there are alternates for this load.
Definition at line 4030 of file model.h.
int frepple::Load::initialize |
( |
|
) |
[static] |
void frepple::Load::setAlternate |
( |
Load * |
f |
) |
|
Define the load of which this one is an alternate.
Definition at line 221 of file load.cpp.
void frepple::Load::setAlternate |
( |
const string & |
n |
) |
|
Define the load of which this one is an alternate.
Definition at line 235 of file load.cpp.
void frepple::Load::setOperation |
( |
Operation * |
o |
) |
[inline] |
Updates the operation being loaded. This method can only be called once for a load.
Definition at line 4001 of file model.h.
void frepple::Load::setPriority |
( |
int |
i |
) |
[inline] |
Update the priority of a load.
Definition at line 4024 of file model.h.
void frepple::Load::setQuantity |
( |
double |
f |
) |
[inline] |
Updates the quantity of the load.
- Exceptions:
-
| DataException | When a negative number is passed. |
Definition at line 4017 of file model.h.
void frepple::Load::setResource |
( |
Resource * |
r |
) |
[inline] |
Updates the capacity being consumed. This method can only be called once on a resource.
Definition at line 4008 of file model.h.
void frepple::Load::setSearch |
( |
const string |
a |
) |
[inline] |
Update the search mode.
Definition at line 4083 of file model.h.
void frepple::Load::setSetup |
( |
const string |
n |
) |
|
Update the required resource setup.
Definition at line 245 of file load.cpp.
virtual void frepple::Load::solve |
( |
Solver & |
s, |
|
|
void * |
v = NULL | |
|
) |
| | const [inline, virtual] |
This method is called by solver classes. The implementation of this class simply calls the solve method on the solver class. Using the polymorphism the solver can implement seperate methods for different plannable subclasses.
Reimplemented from frepple::Solvable.
Definition at line 4068 of file model.h.
void frepple::Load::writeElement |
( |
XMLOutput * |
o, |
|
|
const Keyword & |
tag, |
|
|
mode |
m = DEFAULT | |
|
) |
| | const [virtual] |
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following files: