This class subclasses the OperationPlan class for operations of type OperationAlternate. More...
#include <model.h>
Public Member Functions | |
void | addSubOperationPlan (OperationPlan *o) |
void | eraseSubOperationPlan (OperationPlan *o) |
virtual OperationPlan * | getSubOperationPlan () const |
bool | initialize () |
OperationPlanAlternate () | |
void | setEnd (Date d) |
virtual void | setLocked (bool b=true) |
void | setQuantity (double f, bool roundDown=false, bool update=true) |
void | setStart (Date d) |
void | update () |
~OperationPlanAlternate () | |
Friends | |
class | OperationAlternate |
This class subclasses the OperationPlan class for operations of type OperationAlternate.
Such operationplans need an extra field to point to the suboperationplan.
Definition at line 2583 of file model.h.
frepple::OperationPlanAlternate::OperationPlanAlternate | ( | ) | [inline] |
frepple::OperationPlanAlternate::~OperationPlanAlternate | ( | ) |
Destructor.
Definition at line 898 of file operationplan.cpp.
void frepple::OperationPlanAlternate::addSubOperationPlan | ( | OperationPlan * | o | ) |
Definition at line 879 of file operationplan.cpp.
void frepple::OperationPlanAlternate::eraseSubOperationPlan | ( | OperationPlan * | o | ) |
Definition at line 983 of file operationplan.cpp.
virtual OperationPlan* frepple::OperationPlanAlternate::getSubOperationPlan | ( | ) | const [inline, virtual] |
Returns the sub-operationplan.
Reimplemented from frepple::OperationPlan.
bool frepple::OperationPlanAlternate::initialize | ( | ) | [virtual] |
Initializes the operationplan. If no suboperationplan was created yet this method will create one, using the highest priority alternate.
Reimplemented from frepple::OperationPlan.
Definition at line 952 of file operationplan.cpp.
void frepple::OperationPlanAlternate::setEnd | ( | Date | d | ) | [virtual] |
Updates the end date of the operationplan. The start date is computed. Locked operationplans are not updated by this function.
Reimplemented from frepple::OperationPlan.
Definition at line 906 of file operationplan.cpp.
void frepple::OperationPlanAlternate::setLocked | ( | bool | b = true |
) | [virtual] |
Locks/unlocks an operationplan. A locked operationplan is never changed.
Reimplemented from frepple::OperationPlan.
Definition at line 928 of file operationplan.cpp.
void frepple::OperationPlanAlternate::setQuantity | ( | double | f, | |
bool | roundDown = false , |
|||
bool | update = true | |||
) | [virtual] |
Updates the quantity.
The operationplan quantity is subject to the following rules:
Reimplemented from frepple::OperationPlan.
Definition at line 969 of file operationplan.cpp.
void frepple::OperationPlanAlternate::setStart | ( | Date | d | ) | [virtual] |
Updates the start date of the operationplan. The end date is computed. Locked operation_plans are not updated by this function.
Reimplemented from frepple::OperationPlan.
Definition at line 917 of file operationplan.cpp.
void frepple::OperationPlanAlternate::update | ( | ) | [virtual] |
Updates the operationplan based on the latest information of quantity, date and locked flag.
Reimplemented from frepple::OperationPlan.
Definition at line 936 of file operationplan.cpp.
friend class OperationAlternate [friend] |