frepple::ProblemPlannedLate Class Reference

A problem of this class is created when an OperationPlan is planned later than the accepted tolerance after its lpst Date. More...

#include <model.h>

Inheritance diagram for frepple::ProblemPlannedLate:
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
 ProblemPlannedLate (OperationPlan *o)
 ~ProblemPlannedLate ()

Static Public Member Functions

static TimePeriod getAllowedLate ()
static void setAllowedLate (TimePeriod p)

Static Public Attributes

static const MetaClassmetadata

Detailed Description

A problem of this class is created when an OperationPlan is planned later than the accepted tolerance after its lpst Date.

Definition at line 4590 of file model.h.


Constructor & Destructor Documentation

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

Definition at line 4601 of file model.h.

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

Definition at line 4603 of file model.h.


Member Function Documentation

static TimePeriod frepple::ProblemPlannedLate::getAllowedLate (  )  [inline, static]

Return the tolerance limit for problem detection.

Definition at line 4608 of file model.h.

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

Returns the duration of this problem.

Implements frepple::Problem.

Definition at line 4604 of file model.h.

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

Returns a text description of this problem.

Implements frepple::Problem.

Definition at line 4593 of file model.h.

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

Return the memory size of the object in bytes.

Implements frepple::utils::Object.

Definition at line 4615 of file model.h.

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

Return a reference to the metadata structure.

Reimplemented from frepple::Problem.

Definition at line 4618 of file model.h.

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

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

Implements frepple::Problem.

Definition at line 4597 of file model.h.

bool frepple::ProblemPlannedLate::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 4595 of file model.h.

void frepple::ProblemPlannedLate::setAllowedLate ( 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 147 of file problems_operationplan.cpp.


Member Data Documentation

Storing metadata on this class.

Reimplemented from frepple::Problem.

Definition at line 4621 of file model.h.


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

Generated on 25 Feb 2010 for frePPLe by  doxygen 1.6.1