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 &) |
bool | getHidden () const |
virtual Date | getLoadplanDate (const LoadPlan *) const |
virtual double | getLoadplanQuantity (const LoadPlan *) const |
Operation * | getOperation () const |
double | getQuantity () const |
Resource * | getResource () const |
virtual size_t | getSize () const |
virtual const MetaClass & | getType () const |
Load () | |
Load (Operation *o, Resource *r, double u) | |
void | setOperation (Operation *o) |
void | setQuantity (double f) |
void | setResource (Resource *r) |
virtual void | solve (Solver &s, void *v=NULL) const |
virtual void | writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const |
~Load () | |
Static Public Attributes | |
static const MetaCategory * | metadata |
Friends | |
class | Operation |
class | Resource |
This class links a resource to a certain operation.
Definition at line 3507 of file model.h.
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.
void frepple::Load::endElement | ( | XMLInput & | , | |
const Attribute & | , | |||
const DataElement & | ||||
) | [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.
bool frepple::Load::getHidden | ( | ) | const [inline, virtual] |
Returns whether an entity is real or dummy.
Reimplemented from frepple::utils::Object.
double frepple::Load::getLoadplanQuantity | ( | const LoadPlan * | lp | ) | const [inline, virtual] |
Operation* frepple::Load::getOperation | ( | ) | const [inline] |
double frepple::Load::getQuantity | ( | ) | const [inline] |
Resource* frepple::Load::getResource | ( | ) | const [inline] |
virtual size_t frepple::Load::getSize | ( | ) | const [inline, virtual] |
Return the memory size of the object in bytes.
Implements frepple::utils::Object.
virtual const MetaClass& frepple::Load::getType | ( | ) | const [inline, virtual] |
This returns the type information on the object, a bit similar to the standard type_info information.
Implements frepple::utils::Object.
void frepple::Load::setOperation | ( | Operation * | o | ) | [inline] |
void frepple::Load::setQuantity | ( | double | f | ) | [inline] |
void frepple::Load::setResource | ( | Resource * | r | ) | [inline] |
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.
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.
const MetaCategory * frepple::Load::metadata [static] |