This class represents a workcentre, a physical or logical representation of capacity.
More...
List of all members.
Public Types |
typedef Association< Operation,
Resource, Load >::ListB | loadlist |
typedef TimeLine< LoadPlan > | loadplanlist |
Public Member Functions |
void | beginElement (XMLInput &, const Attribute &) |
void | deleteOperationPlans (bool=false) |
void | endElement (XMLInput &, const Attribute &, const DataElement &) |
size_t | extrasize () const |
Load * | findLoad (const Operation *o, Date d) const |
virtual PyObject * | getattro (const Attribute &) |
double | getCost () const |
bool | getHidden () const |
loadplanlist & | getLoadPlans () |
const loadplanlist & | getLoadPlans () const |
const loadlist & | getLoads () const |
Location * | getLocation () const |
TimePeriod | getMaxEarly () const |
CalendarDouble * | getMaximum () const |
const string & | getSetup () const |
SetupMatrix * | getSetupMatrix () const |
virtual const MetaClass & | getType () const |
| Resource (const string &str) |
virtual int | setattro (const Attribute &, const PythonObject &) |
void | setCost (const double c) |
void | setHidden (bool b) |
void | setLocation (Location *i) |
void | setMaxEarly (TimePeriod c) |
void | setMaximum (CalendarDouble *c) |
void | setSetup (const string s) |
void | setSetupMatrix (SetupMatrix *s) |
virtual void | solve (Solver &s, void *v=NULL) const |
virtual void | updateProblems () |
virtual void | updateSetups (const LoadPlan *=NULL) |
virtual void | writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const |
virtual | ~Resource () |
Static Public Member Functions |
static int | initialize () |
Static Public Attributes |
static const long | defaultMaxEarly = 100*86400L |
static const MetaCategory * | metadata |
Friends |
class | Load |
class | LoadPlan |
Detailed Description
This class represents a workcentre, a physical or logical representation of capacity.
Definition at line 3793 of file model.h.
Member Typedef Documentation
Constructor & Destructor Documentation
frepple::Resource::Resource |
( |
const string & |
str |
) |
[inline, explicit] |
frepple::Resource::~Resource |
( |
|
) |
[virtual] |
Member Function Documentation
void frepple::Resource::deleteOperationPlans |
( |
bool |
deleteLocked = false |
) |
|
Deletes all operationplans loading this resource. The boolean parameter controls whether we delete also locked operationplans or not.
Definition at line 233 of file resource.cpp.
size_t frepple::Resource::extrasize |
( |
|
) |
const [inline] |
Return the load that is associates a given operation with this resource. Returns NULL is no such load exists.
Definition at line 3846 of file model.h.
PyObject * frepple::Resource::getattro |
( |
const Attribute & |
attr |
) |
[virtual] |
double frepple::Resource::getCost |
( |
|
) |
const [inline] |
Returns the cost of using 1 unit of this resource for 1 hour.
The default value is 0.0.
Definition at line 3821 of file model.h.
bool frepple::Resource::getHidden |
( |
|
) |
const [inline] |
const loadplanlist& frepple::Resource::getLoadPlans |
( |
|
) |
const [inline] |
Returns a reference to the list of loadplans.
Definition at line 3834 of file model.h.
Returns a reference to the list of loadplans.
Definition at line 3837 of file model.h.
const loadlist& frepple::Resource::getLoads |
( |
|
) |
const [inline] |
Returns a constant reference to the list of loads. It defines which operations are using the resource.
Definition at line 3842 of file model.h.
Location* frepple::Resource::getLocation |
( |
|
) |
const [inline] |
Returns the location of this resource.
Definition at line 3862 of file model.h.
TimePeriod frepple::Resource::getMaxEarly |
( |
|
) |
const [inline] |
Returns the maximum inventory buildup allowed in case of capacity shortages.
Definition at line 3888 of file model.h.
Return a pointer to the maximum capacity profile.
Definition at line 3816 of file model.h.
const string& frepple::Resource::getSetup |
( |
|
) |
const [inline] |
Return the current setup.
Definition at line 3905 of file model.h.
SetupMatrix* frepple::Resource::getSetupMatrix |
( |
|
) |
const [inline] |
Return a pointer to the setup matrix.
Definition at line 3899 of file model.h.
virtual const MetaClass& frepple::Resource::getType |
( |
|
) |
const [inline, virtual] |
int frepple::Resource::initialize |
( |
|
) |
[static] |
void frepple::Resource::setCost |
( |
const double |
c |
) |
[inline] |
Update the cost of using 1 unit of this resource for 1 hour.
Definition at line 3824 of file model.h.
void frepple::Resource::setHidden |
( |
bool |
b |
) |
[inline] |
void frepple::Resource::setLocation |
( |
Location * |
i |
) |
[inline] |
Updates the location of this resource.
Definition at line 3865 of file model.h.
void frepple::Resource::setMaxEarly |
( |
TimePeriod |
c |
) |
[inline] |
Updates the maximum inventory buildup allowed in case of capacity shortages.
Definition at line 3892 of file model.h.
Updates the size of a resource.
Definition at line 77 of file resource.cpp.
void frepple::Resource::setSetup |
( |
const string |
s |
) |
[inline] |
Update the current setup.
Definition at line 3908 of file model.h.
void frepple::Resource::setSetupMatrix |
( |
SetupMatrix * |
s |
) |
[inline] |
Update the reference to the setup matrix.
Definition at line 3902 of file model.h.
virtual void frepple::Resource::solve |
( |
Solver & |
s, |
|
|
void * |
v = NULL | |
|
) |
| | const [inline, virtual] |
void frepple::Resource::updateProblems |
( |
|
) |
[virtual] |
void frepple::Resource::updateSetups |
( |
const LoadPlan * |
ldplan = NULL |
) |
[virtual] |
Scan the setups of this resource.
Definition at line 257 of file resource.cpp.
void frepple::Resource::writeElement |
( |
XMLOutput * |
o, |
|
|
const Keyword & |
tag, |
|
|
mode |
m = DEFAULT | |
|
) |
| | const [virtual] |
Friends And Related Function Documentation
friend class Load [friend] |
Member Data Documentation
The default time window before the ask date where we look for available capacity.
Definition at line 3802 of file model.h.
The documentation for this class was generated from the following files: