This class links a resource to a certain operation. More...
#include <model.h>
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 |
double | getQuantity () const |
Resource * | getResource () const |
SearchMode | getSearch () const |
const string & | getSetup () const |
virtual size_t | getSize () const |
Skill * | getSkill () const |
virtual const MetaClass & | getType () const |
bool | hasAlternates () const |
Load (Operation *o, Resource *r, double u) | |
Load (Operation *o, Resource *r, double u, DateRange e) | |
Load () | |
void | setAlternate (Load *) |
void | setAlternate (const string &n) |
int | setattro (const Attribute &, const PythonObject &) |
void | setOperation (Operation *o) |
void | setQuantity (double f) |
void | setResource (Resource *r) |
void | setSearch (const string a) |
void | setSetup (const string) |
void | setSkill (Skill *s) |
virtual void | solve (Solver &s, void *v=NULL) const |
virtual void | writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const |
~Load () | |
![]() | |
Object () | |
virtual void | setHidden (bool b) |
virtual | ~Object () |
![]() | |
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 PyObject * | str () const |
virtual | ~PythonExtensionBase () |
![]() | |
DateRange | getEffective () const |
const string & | getName () const |
int | getPriority () const |
A * | getPtrA () const |
B * | getPtrB () const |
Node () | |
Node (A *a, B *b, const ListA &al, const ListB &bl) | |
void | setEffective (DateRange dr) |
void | setEffectiveEnd (Date d) |
void | setEffectiveStart (Date d) |
void | setName (const string x) |
void | setPriority (int i) |
void | setPtrA (A *a, const ListA &al) |
void | setPtrAB (A *a, B *b, const ListA &al, const ListB &bl) |
void | setPtrB (B *b, const ListB &bl) |
![]() | |
virtual | ~Solvable () |
Static Public Member Functions | |
static int | initialize () |
static void | writer (const MetaCategory *, XMLOutput *) |
![]() | |
template<class T > | |
static Object * | createDefault () |
template<class T > | |
static Object * | createString (const string &n) |
static PyObject * | toXML (PyObject *, PyObject *) |
Static Public Attributes | |
static const MetaCategory * | metadata |
Friends | |
class | Operation |
class | Resource |
Additional Inherited Members | |
![]() | |
DateRange | effectivity |
string | name |
C * | nextA |
C * | nextB |
int | priority |
A * | ptrA |
B * | ptrB |
Called while restoring the model from an XML-file.
This is called for each element within the "this" element, for which the "this" element is immediate parent.
It is called when the open element tag is encountered.
Reimplemented from frepple::utils::Object.
|
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.
|
inline |
|
virtual |
Default getattro method.
Subclasses are expected to implement an override if the type supports gettattro.
Reimplemented from frepple::utils::PythonExtensionBase.
|
inlinevirtual |
Returns whether an entity is real or dummy.
Reimplemented from frepple::utils::Object.
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Return the memory size of the object in bytes.
Implements frepple::utils::Object.
|
inline |
|
inlinevirtual |
This returns the type information on the object, a bit similar to the standard type_info information.
Implements frepple::utils::Object.
|
inline |
void frepple::Load::setAlternate | ( | Load * | f | ) |
void frepple::Load::setAlternate | ( | const string & | n | ) |
|
virtual |
Default setattro method.
Subclasses are expected to implement an override if the type supports settattro.
Reimplemented from frepple::utils::PythonExtensionBase.
|
inline |
|
inline |
|
inline |
|
inline |
void frepple::Load::setSetup | ( | const string | n | ) |
|
inline |
|
inlinevirtual |
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.
Called while writing the model into an XML-file. The user class should write itself out, using the IOutStream members for its "simple" members and calling writeElement recursively for any contained objects. Not all classes are expected to implement this method. In instances of such a class can be created but can't be persisted. E.g. Command
Reimplemented from frepple::utils::Object.
|
static |
|
static |