This class represents a material buffer with an infinite supply of extra material. More...

#include <model.h>

Inheritance diagram for frepple::BufferInfinite:

List of all members.

Public Member Functions

 BufferInfinite (const string &c)
virtual size_t getSize () const
virtual const MetaClass & getType () const
virtual void solve (Solver &s, void *v=NULL) const
virtual void writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const
- Public Member Functions inherited from frepple::Buffer
virtual void beginElement (XMLInput &, const Attribute &)
 Buffer (const string &str)
void deleteOperationPlans (bool deleteLockedOpplans=false)
virtual void endElement (XMLInput &, const Attribute &, const DataElement &)
size_t extrasize () const
Flow * findFlow (const Operation *o, Date d) const
virtual void followPegging (PeggingIterator &, FlowPlan *, short, double, double)
virtual PyObject * getattro (const Attribute &)
double getCarryingCost () const
const flowplanlist & getFlowPlans () const
flowplanlist & getFlowPlans ()
const flowlist & getFlows () const
bool getHidden () const
Item * getItem () const
Location * getLocation () const
double getMaximum () const
CalendarDouble * getMaximumCalendar () const
double getMinimum () const
CalendarDouble * getMinimumCalendar () const
double getOnHand (Date d=Date::infinitePast) const
double getOnHand (Date, Date, bool min=true) const
Operation * getProducingOperation () const
virtual int setattro (const Attribute &, const PythonObject &)
void setCarryingCost (const double c)
void setHidden (bool b)
void setItem (Item *i)
void setLocation (Location *i)
void setMaximum (double)
void setMaximumCalendar (CalendarDouble *)
void setMinimum (double)
void setMinimumCalendar (CalendarDouble *)
void setOnHand (double f)
void setProducingOperation (Operation *o)
virtual void updateProblems ()
virtual ~Buffer ()
- Public Member Functions inherited from frepple::utils::HasHierarchy< Buffer >
memberIterator beginMember () const
unsigned short getHierarchyLevel () const
Buffer * getOwner () const
 HasHierarchy (const string &n)
bool hasOwner () const
bool isGroup () const
void setOwner (Buffer *f)
 ~HasHierarchy ()
- Public Member Functions inherited from frepple::utils::HasName< Buffer >
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
TreeNode * decrement () const
const string & getName () const
TreeNode * increment () 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
Plannable * getEntity () 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
string getCategory () const
string getDescription () const
string getSubCategory () const
void setCategory (const string &f)
void setDescription (const string &f)
void setSubCategory (const string &f)

Static Public Member Functions

static int initialize ()

Static Public Attributes

static const MetaClass * metadata
- Static Public Attributes inherited from frepple::Buffer

Additional Inherited Members

- Public Types inherited from frepple::Buffer
typedef Association< Operation,
Buffer, Flow >::ListB 
flowlist
typedef TimeLine< FlowPlan > flowplanlist

Detailed Description

This class represents a material buffer with an infinite supply of extra material.

In other words, it never constrains the plan and it doesn't propagate any requirements upstream.

Definition at line 2906 of file model.h.


Constructor & Destructor Documentation

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

Definition at line 2914 of file model.h.


Member Function Documentation

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

Return the memory size of the object in bytes.

Implements frepple::utils::Object.

Definition at line 2912 of file model.h.

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

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

Reimplemented from frepple::Buffer.

Definition at line 2911 of file model.h.

int frepple::BufferInfinite::initialize ( )
static

Initialize the class.

Reimplemented from frepple::Buffer.

Definition at line 66 of file buffer.cpp.

virtual void frepple::BufferInfinite::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::Buffer.

Definition at line 2909 of file model.h.

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

Reimplemented from frepple::Buffer.

Definition at line 678 of file buffer.cpp.


Member Data Documentation

const MetaClass * frepple::BufferInfinite::metadata
static

Reimplemented from frepple::Buffer.

Definition at line 2916 of file model.h.


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