This class represents the resource capacity of an operationplan. More...
#include <model.h>
Public Member Functions | |
bool | getHidden () const |
Load * | getLoad () const |
OperationPlan * | getOperationPlan () const |
LoadPlan * | getOtherLoadPlan () const |
TimeLine< LoadPlan > * | getTimeLine () const |
bool | isStart () const |
LoadPlan (OperationPlan *, const Load *) | |
void | update () |
virtual | ~LoadPlan () |
Friends | |
class | OperationPlan::LoadPlanIterator |
This class represents the resource capacity of an operationplan.
For both the start and the end date of the operationplan, a loadplan object is created. These are then inserted in the timeline structure associated with a resource.
Definition at line 4190 of file model.h.
frepple::LoadPlan::LoadPlan | ( | OperationPlan * | o, | |
const Load * | r | |||
) | [explicit] |
Public constructor.
This constructor constructs the starting loadplan and will also call a private constructor to creates the ending loadplan. In other words, a single call to the constructor will create two loadplan objects.
Definition at line 34 of file loadplan.cpp.
virtual frepple::LoadPlan::~LoadPlan | ( | ) | [inline, virtual] |
bool frepple::LoadPlan::getHidden | ( | ) | const [inline] |
Load* frepple::LoadPlan::getLoad | ( | ) | const [inline] |
OperationPlan* frepple::LoadPlan::getOperationPlan | ( | ) | const [inline] |
LoadPlan * frepple::LoadPlan::getOtherLoadPlan | ( | ) | const |
Each operationplan has 2 loadplans per load: one at the start, when the capacity consumption starts, and one at the end, when the capacity consumption ends.
This method returns the "companion" loadplan. It is not very scalable: the performance is linear with the number of loadplans on the resource.
Definition at line 74 of file loadplan.cpp.
Return a pointer to the timeline data structure owning this loadplan.
Reimplemented from frepple::utils::TimeLine< type >::Event.
bool frepple::LoadPlan::isStart | ( | ) | const [inline] |
void frepple::LoadPlan::update | ( | ) |
This function needs to be called whenever the loadplan date or quantity are changed.
Definition at line 82 of file loadplan.cpp.
friend class OperationPlan::LoadPlanIterator [friend] |