frepple::ProblemPlannedEarly Class Reference

A problem of this class is created when a demand is planned earlier than the accepted tolerance before its epst date. More...

#include <model.h>

Inheritance diagram for frepple::ProblemPlannedEarly:
frepple::Problem frepple::utils::NonCopyable frepple::utils::Object

List of all members.

Public Member Functions

const DateRange getDateRange () const
string getDescription () const
size_t getSize () const
const MetaClassgetType () const
double getWeight () const
bool isFeasible () const
 ProblemPlannedEarly (OperationPlan *o)
 ~ProblemPlannedEarly ()

Static Public Member Functions

static TimePeriod getAllowedEarly ()
static void setAllowedEarly (TimePeriod p)

Static Public Attributes

static const MetaClassmetadata

Detailed Description

A problem of this class is created when a demand is planned earlier than the accepted tolerance before its epst date.

Definition at line 4634 of file model.h.


Constructor & Destructor Documentation

frepple::ProblemPlannedEarly::ProblemPlannedEarly ( OperationPlan o  )  [inline, explicit]

Definition at line 4645 of file model.h.

frepple::ProblemPlannedEarly::~ProblemPlannedEarly (  )  [inline]

Definition at line 4647 of file model.h.


Member Function Documentation

static TimePeriod frepple::ProblemPlannedEarly::getAllowedEarly (  )  [inline, static]

Return the tolerance limit for problem detection.

Definition at line 4652 of file model.h.

const DateRange frepple::ProblemPlannedEarly::getDateRange (  )  const [inline, virtual]

Returns the duration of this problem.

Implements frepple::Problem.

Definition at line 4648 of file model.h.

string frepple::ProblemPlannedEarly::getDescription (  )  const [inline, virtual]

Returns a text description of this problem.

Implements frepple::Problem.

Definition at line 4637 of file model.h.

size_t frepple::ProblemPlannedEarly::getSize (  )  const [inline, virtual]

Return the memory size of the object in bytes.

Implements frepple::utils::Object.

Definition at line 4659 of file model.h.

const MetaClass& frepple::ProblemPlannedEarly::getType (  )  const [inline, virtual]

Return a reference to the metadata structure.

Reimplemented from frepple::Problem.

Definition at line 4662 of file model.h.

double frepple::ProblemPlannedEarly::getWeight (  )  const [inline, virtual]

The weight of the problem is equal to the duration in days.

Implements frepple::Problem.

Definition at line 4641 of file model.h.

bool frepple::ProblemPlannedEarly::isFeasible (  )  const [inline, virtual]

Returns true if the plan remains feasible even if it contains this problem, i.e. if the problems flags only a warning. Returns false if a certain problem points at an infeasibility of the plan.

Implements frepple::Problem.

Definition at line 4639 of file model.h.

void frepple::ProblemPlannedEarly::setAllowedEarly ( TimePeriod  p  )  [static]

Update the tolerance limit. Note that this will trigger re-evaluation of all operationplans and existing problems, which can be expensive in a big plan.

Definition at line 134 of file problems_operationplan.cpp.


Member Data Documentation

Storing metadata on this class.

Reimplemented from frepple::Problem.

Definition at line 4665 of file model.h.


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

Generated on 25 Sep 2009 for frePPLe by  doxygen 1.6.1