This class represents a resource that'll never have any capacity shortage. More...

#include <model.h>

Inheritance diagram for frepple::ResourceInfinite:

Public Member Functions

virtual size_t getSize () const
 
virtual const MetaClassgetType () const
 
 ResourceInfinite (const string &c)
 
virtual void solve (Solver &s, void *v=NULL) const
 
virtual void writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const
 
- Public Member Functions inherited from frepple::Resource
void beginElement (XMLInput &, const Attribute &)
 
void deleteOperationPlans (bool=false)
 
void endElement (XMLInput &, const Attribute &, const DataElement &)
 
size_t extrasize () const
 
LoadfindLoad (const Operation *o, Date d) const
 
virtual PyObject * getattro (const Attribute &)
 
double getCost () const
 
bool getHidden () const
 
const loadplanlistgetLoadPlans () const
 
loadplanlistgetLoadPlans ()
 
const loadlistgetLoads () const
 
LocationgetLocation () const
 
TimePeriod getMaxEarly () const
 
double getMaximum () const
 
CalendarDoublegetMaximumCalendar () const
 
const string & getSetup () const
 
SetupMatrixgetSetupMatrix () const
 
const skilllistgetSkills () 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 (double)
 
void setMaximumCalendar (CalendarDouble *)
 
void setSetup (const string s)
 
void setSetupMatrix (SetupMatrix *s)
 
virtual void updateProblems ()
 
virtual void updateSetups (const LoadPlan *=NULL)
 
virtual ~Resource ()
 
- Public Member Functions inherited from frepple::utils::HasHierarchy< Resource >
void beginElement (XMLInput &, const Attribute &)
 
memberIterator beginMember () const
 
void endElement (XMLInput &, const Attribute &, const DataElement &)
 
unsigned short getHierarchyLevel () const
 
ResourcegetOwner () const
 
 HasHierarchy (const string &n)
 
bool hasOwner () const
 
bool isGroup () const
 
void setOwner (Resource *f)
 
void writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const
 
 ~HasHierarchy ()
 
- Public Member Functions inherited from frepple::utils::HasName< Resource >
int compare (const PyObject *other) const
 
 HasName (const string &n)
 
 HasName (const char *n)
 
void setName (const string &newname)
 
virtual PyObject * str () const
 
 ~HasName ()
 
- Public Member Functions inherited from frepple::utils::Tree::TreeNode
TreeNodedecrement () const
 
const string & getName () const
 
TreeNodeincrement () const
 
bool operator< (const TreeNode &o)
 
 TreeNode (const string &n)
 
virtual ~TreeNode ()
 
- Public Member Functions inherited from frepple::utils::Object
 Object ()
 
virtual ~Object ()
 
- Public Member Functions inherited from frepple::utils::PythonExtensionBase
virtual PyObject * call (const PythonObject &args, const PythonObject &kwds)
 
Py_ssize_t getReferenceCount () const
 
void initType (const MetaClass *t)
 
void initType (PyTypeObject *t)
 
virtual PyObject * iternext ()
 
 PythonExtensionBase ()
 
void resetReferenceCount ()
 
virtual ~PythonExtensionBase ()
 
- Public Member Functions inherited from frepple::HasLevel
unsigned short getCluster () const
 
short getLevel () const
 
- Public Member Functions inherited from frepple::Plannable
bool getChanged () const
 
bool getDetectProblems () const
 
PlannablegetEntity () const
 
 Plannable ()
 
void setChanged (bool b=true)
 
void setDetectProblems (bool b)
 
- Public Member Functions inherited from frepple::HasProblems
 HasProblems ()
 
virtual ~HasProblems ()
 
- Public Member Functions inherited from frepple::Solvable
virtual ~Solvable ()
 
- Public Member Functions inherited from frepple::utils::HasDescription
void endElement (XMLInput &, const Attribute &, const DataElement &)
 
string getCategory () const
 
string getDescription () const
 
string getSubCategory () const
 
void setCategory (const string &f)
 
void setDescription (const string &f)
 
void setSubCategory (const string &f)
 
void writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const
 

Static Public Member Functions

static int initialize ()
 
- Static Public Member Functions inherited from frepple::Resource
static int initialize ()
 
- Static Public Member Functions inherited from frepple::HasLevel
static unsigned short getNumberOfClusters ()
 
static unsigned short getNumberOfHangingClusters ()
 
static void triggerLazyRecomputation ()
 
- Static Public Member Functions inherited from frepple::Plannable
static void computeProblems ()
 
- Static Public Member Functions inherited from frepple::HasProblems
static EntityIterator beginEntity ()
 
static EntityIterator endEntity ()
 

Static Public Attributes

static const MetaClassmetadata
 
- Static Public Attributes inherited from frepple::Resource
static const long defaultMaxEarly = 100*86400L
 
static const MetaCategorymetadata
 

Additional Inherited Members

- Public Types inherited from frepple::Resource
typedef Association< Operation,
Resource, Load >::ListB 
loadlist
 
typedef TimeLine< LoadPlanloadplanlist
 
typedef Association< Resource,
Skill, ResourceSkill >::ListA 
skilllist
 
- Protected Member Functions inherited from frepple::utils::NonCopyable
 NonCopyable ()
 
 ~NonCopyable ()
 
- Protected Member Functions inherited from frepple::HasLevel
 HasLevel ()
 
 HasLevel (const HasLevel &o)
 
 ~HasLevel ()
 
- Protected Member Functions inherited from frepple::utils::HasDescription
size_t extrasize () const
 
- Static Protected Member Functions inherited from frepple::utils::PythonExtensionBase
static PythonTyperegisterPythonType (int, const type_info *)
 
- Static Protected Member Functions inherited from frepple::HasLevel
static void computeLevels ()
 
- Static Protected Attributes inherited from frepple::utils::PythonExtensionBase
static vector< PythonType * > table
 

Detailed Description

This class represents a resource that'll never have any capacity shortage.

Definition at line 4099 of file model.h.

Constructor & Destructor Documentation

frepple::ResourceInfinite::ResourceInfinite ( const string &  c)
inlineexplicit

Definition at line 4105 of file model.h.

Member Function Documentation

virtual size_t frepple::ResourceInfinite::getSize ( ) const
inlinevirtual

Return the memory size of the object in bytes.

Implements frepple::utils::Object.

Definition at line 4108 of file model.h.

virtual const MetaClass& frepple::ResourceInfinite::getType ( ) const
inlinevirtual

This returns the type information on the object, a bit similar to the standard type_info information.

Reimplemented from frepple::Resource.

Definition at line 4104 of file model.h.

int frepple::ResourceInfinite::initialize ( )
static

Definition at line 59 of file resource.cpp.

virtual void frepple::ResourceInfinite::solve ( Solver s,
void *  v = NULL 
) const
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::Resource.

Definition at line 4102 of file model.h.

void frepple::ResourceInfinite::writeElement ( XMLOutput o,
const Keyword tag,
mode  m = DEFAULT 
) const
virtual

Reimplemented from frepple::Resource.

Definition at line 356 of file resource.cpp.

Member Data Documentation

const MetaClass * frepple::ResourceInfinite::metadata
static

Definition at line 4107 of file model.h.


The documentation for this class was generated from the following files: