frepple::CommandMoveOperationPlan Class Reference
This class represents the command of moving an operationplan to a new date and/or resizing it. More...
#include <model.h>
Inheritance diagram for frepple::CommandMoveOperationPlan:

Public Member Functions | |
CommandMoveOperationPlan (OperationPlan *) | |
CommandMoveOperationPlan (OperationPlan *opplanptr, Date newStart, Date newEnd, double newQty=-1.0) | |
void | execute () |
DateRange | getDates () const |
OperationPlan * | getOperationPlan () const |
double | getQuantity () const |
void | restore (bool=false) |
void | setEnd (Date d) |
void | setParameters (Date s, Date e, double q, bool b) |
void | setQuantity (double q) |
void | setStart (Date d) |
void | undo () |
bool | undoable () const |
~CommandMoveOperationPlan () |
Detailed Description
This class represents the command of moving an operationplan to a new date and/or resizing it.
Definition at line 5510 of file model.h.
Constructor & Destructor Documentation
frepple::CommandMoveOperationPlan::CommandMoveOperationPlan | ( | OperationPlan * | opplanptr, | |
Date | newStart, | |||
Date | newEnd, | |||
double | newQty = -1.0 | |||
) |
Constructor.
Unlike most other commands the constructor already executes the change.
- Parameters:
-
opplanptr Pointer to the operationplan being moved. newStart New start date of the operationplan. newEnd New end date of the operationplan. newQty New quantity of the operationplan.The default is -1, which indicates to leave the quantity unchanged.
Definition at line 392 of file model/actions.cpp.
frepple::CommandMoveOperationPlan::CommandMoveOperationPlan | ( | OperationPlan * | o | ) |
Default constructor.
Definition at line 365 of file model/actions.cpp.
frepple::CommandMoveOperationPlan::~CommandMoveOperationPlan | ( | ) | [inline] |
Member Function Documentation
void frepple::CommandMoveOperationPlan::execute | ( | ) | [inline, virtual] |
DateRange frepple::CommandMoveOperationPlan::getDates | ( | ) | const [inline] |
OperationPlan* frepple::CommandMoveOperationPlan::getOperationPlan | ( | ) | const [inline] |
double frepple::CommandMoveOperationPlan::getQuantity | ( | ) | const [inline] |
void frepple::CommandMoveOperationPlan::restore | ( | bool | del = false |
) |
Undo the changes.
Definition at line 424 of file model/actions.cpp.
void frepple::CommandMoveOperationPlan::setEnd | ( | Date | d | ) | [inline] |
void frepple::CommandMoveOperationPlan::setQuantity | ( | double | q | ) | [inline] |
void frepple::CommandMoveOperationPlan::setStart | ( | Date | d | ) | [inline] |
void frepple::CommandMoveOperationPlan::undo | ( | ) | [inline, virtual] |
Undo the changes.
Reimplemented from frepple::utils::Command.
bool frepple::CommandMoveOperationPlan::undoable | ( | ) | const [inline, virtual] |
Returns true if the execution of this command can be undone.
Reimplemented from frepple::utils::Command.
The documentation for this class was generated from the following files:
Documentation generated for frePPLe by
