Classes that keep track of problem conditions need to implement this class. More...
#include <model.h>
Classes | |
class | EntityIterator |
This class models a iterator that walks over all available HasProblem entities. More... | |
Public Member Functions | |
virtual Plannable * | getEntity () const =0 |
HasProblems () | |
virtual void | updateProblems ()=0 |
virtual | ~HasProblems () |
Static Public Member Functions | |
static EntityIterator | beginEntity () |
static EntityIterator | endEntity () |
Friends | |
class | Problem |
class | Problem::const_iterator |
Classes that keep track of problem conditions need to implement this class.
This class is closely related to the Problem class.
Definition at line 960 of file model.h.
virtual frepple::HasProblems::~HasProblems | ( | ) | [inline, virtual] |
HasProblems::EntityIterator frepple::HasProblems::beginEntity | ( | ) | [static] |
Returns an iterator pointing to the first HasProblem object.
Definition at line 420 of file problem.cpp.
HasProblems::EntityIterator frepple::HasProblems::endEntity | ( | ) | [static] |
Returns an iterator pointing beyond the last HasProblem object.
Definition at line 426 of file problem.cpp.
virtual Plannable* frepple::HasProblems::getEntity | ( | ) | const [pure virtual] |
Returns the plannable entity relating to this problem container.
Implemented in frepple::Plannable, and frepple::OperationPlan.
virtual void frepple::HasProblems::updateProblems | ( | ) | [pure virtual] |
Called to update the list of problems. The function will only be called when:
Implemented in frepple::Operation, frepple::OperationPlan, frepple::OperationPlanRouting, frepple::Buffer, frepple::Resource, frepple::Plan, and frepple::Demand.
friend class Problem::const_iterator [friend] |