This class needs to be implemented by all classes that implement dynamic behavior in the plan. More...
#include <model.h>
Public Member Functions | |
virtual void | endElement (XMLInput &, const Attribute &, const DataElement &) |
bool | getChanged () const |
bool | getDetectProblems () const |
Plannable * | getEntity () const |
Plannable () | |
void | setChanged (bool b=true) |
void | setDetectProblems (bool b) |
virtual void | writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const |
Static Public Member Functions | |
static void | computeProblems () |
This class needs to be implemented by all classes that implement dynamic behavior in the plan.
The problem detection logic is implemented in the detectProblems() method. For performance reasons, problem detection is "lazy", i.e. problems are computed only when somebody really needs the access to the list of problems.
Definition at line 1164 of file model.h.
void frepple::Plannable::computeProblems | ( | ) | [static] |
Loops through all plannable objects and updates their problems if required.
Definition at line 175 of file problem.cpp.
void frepple::Plannable::endElement | ( | XMLInput & | pIn, | |
const Attribute & | pAttr, | |||
const DataElement & | pElement | |||
) | [virtual] |
Reimplemented in frepple::Operation, frepple::OperationFixedTime, frepple::OperationTimePer, frepple::OperationRouting, frepple::OperationAlternate, frepple::Buffer, frepple::BufferProcure, frepple::Resource, frepple::Plan, frepple::Demand, and module_forecast::Forecast.
Definition at line 225 of file problem.cpp.
bool frepple::Plannable::getChanged | ( | ) | const [inline] |
bool frepple::Plannable::getDetectProblems | ( | ) | const [inline] |
Plannable* frepple::Plannable::getEntity | ( | ) | const [inline, virtual] |
Implement the pure virtual function from the HasProblem class.
Implements frepple::HasProblems.
void frepple::Plannable::setChanged | ( | bool | b = true |
) | [inline] |
void frepple::Plannable::setDetectProblems | ( | bool | b | ) |
Specify whether this entity reports problems.
Definition at line 161 of file problem.cpp.
void frepple::Plannable::writeElement | ( | XMLOutput * | o, | |
const Keyword & | tag, | |||
mode | m = DEFAULT | |||
) | const [virtual] |
Reimplemented in frepple::Operation, frepple::OperationFixedTime, frepple::OperationSetup, frepple::OperationTimePer, frepple::OperationRouting, frepple::OperationAlternate, frepple::Buffer, frepple::BufferInfinite, frepple::BufferProcure, frepple::Resource, frepple::ResourceInfinite, frepple::Plan, frepple::Demand, and module_forecast::Forecast.
Definition at line 215 of file problem.cpp.