This class is the default implementation of the abstract Demand class. More...

#include <model.h>

Inheritance diagram for frepple::DemandDefault:

List of all members.

Public Member Functions

 DemandDefault (const string &str)
virtual size_t getSize () const
virtual const MetaClassgetType () const
- Public Member Functions inherited from frepple::Demand
void addDelivery (OperationPlan *o)
virtual void beginElement (XMLInput &, const Attribute &)
void deleteOperationPlans (bool deleteLockedOpplans=false, CommandManager *=NULL)
 Demand (const string &str)
virtual void endElement (XMLInput &, const Attribute &, const DataElement &)
size_t extrasize () const
virtual PyObject * getattro (const Attribute &)
int getCluster () const
const Problem::ListgetConstraints () const
Problem::ListgetConstraints ()
CustomergetCustomer () const
const OperationPlan_listgetDelivery () const
OperationgetDeliveryOperation () const
const DategetDue () const
OperationPlangetEarliestDelivery () const
bool getHidden () const
ItemgetItem () const
OperationPlangetLatestDelivery () const
TimePeriod getMaxLateness () const
double getMinShipment () const
OperationgetOperation () const
double getPlannedQuantity () const
int getPriority () const
double getQuantity () const
void removeDelivery (OperationPlan *o)
virtual int setattro (const Attribute &, const PythonObject &)
virtual void setCustomer (Customer *c)
virtual void setDue (Date d)
void setHidden (bool b)
virtual void setItem (Item *i)
virtual void setMaxLateness (TimePeriod m)
virtual void setMinShipment (double m)
virtual void setOperation (Operation *o)
virtual void setPriority (int i)
virtual void setQuantity (double)
virtual void solve (Solver &s, void *v=NULL) const
virtual void updateProblems ()
virtual void writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const
virtual ~Demand ()
- Public Member Functions inherited from frepple::utils::HasHierarchy< Demand >
memberIterator beginMember () const
unsigned short getHierarchyLevel () const
DemandgetOwner () const
 HasHierarchy (const string &n)
bool hasOwner () const
bool isGroup () const
void setOwner (Demand *f)
 ~HasHierarchy ()
- Public Member Functions inherited from frepple::utils::HasName< Demand >
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::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
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 MetaClassmetadata
- Static Public Attributes inherited from frepple::Demand

Additional Inherited Members

- Public Types inherited from frepple::Demand
typedef slist< OperationPlan * > OperationPlan_list

Detailed Description

This class is the default implementation of the abstract Demand class.

Definition at line 4556 of file model.h.


Constructor & Destructor Documentation

frepple::DemandDefault::DemandDefault ( const string &  str)
inlineexplicit

Definition at line 4559 of file model.h.


Member Function Documentation

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

Return the memory size of the object in bytes.

Implements frepple::utils::Object.

Definition at line 4562 of file model.h.

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

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

Reimplemented from frepple::Demand.

Definition at line 4560 of file model.h.

int frepple::DemandDefault::initialize ( )
static

Reimplemented from frepple::Demand.

Definition at line 42 of file demand.cpp.


Member Data Documentation

const MetaClass * frepple::DemandDefault::metadata
static

Reimplemented from frepple::Demand.

Definition at line 4561 of file model.h.


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