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>
Public Member Functions | |
| const DateRange | getDateRange () const |
| string | getDescription () const |
| size_t | getSize () const |
| const MetaClass & | getType () 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 MetaClass * | metadata |
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.
| frepple::ProblemPlannedEarly::ProblemPlannedEarly | ( | OperationPlan * | o | ) | [inline, explicit] |
| frepple::ProblemPlannedEarly::~ProblemPlannedEarly | ( | ) | [inline] |
| static TimePeriod frepple::ProblemPlannedEarly::getAllowedEarly | ( | ) | [inline, static] |
| const DateRange frepple::ProblemPlannedEarly::getDateRange | ( | ) | const [inline, virtual] |
Returns the duration of this problem.
Implements frepple::Problem.
| string frepple::ProblemPlannedEarly::getDescription | ( | ) | const [inline, virtual] |
Returns a text description of this problem.
Implements frepple::Problem.
| size_t frepple::ProblemPlannedEarly::getSize | ( | ) | const [inline, virtual] |
Return the memory size of the object in bytes.
Implements frepple::utils::Object.
| const MetaClass& frepple::ProblemPlannedEarly::getType | ( | ) | const [inline, virtual] |
Return a reference to the metadata structure.
Reimplemented from frepple::Problem.
| double frepple::ProblemPlannedEarly::getWeight | ( | ) | const [inline, virtual] |
The weight of the problem is equal to the duration in days.
Implements frepple::Problem.
| 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.
| 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.
const MetaClass * frepple::ProblemPlannedEarly::metadata [static] |
Storing metadata on this class.
Reimplemented from frepple::Problem.
1.6.1