This command is used to create an operationplan. More...
#include <model.h>
Public Member Functions | |
CommandCreateOperationPlan (const Operation *o, double q, Date d1, Date d2, Demand *l, OperationPlan *ow=NULL, bool makeflowsloads=true) | |
void | commit () |
OperationPlan * | getOperationPlan () const |
virtual void | redo () |
virtual void | rollback () |
virtual void | undo () |
virtual | ~CommandCreateOperationPlan () |
![]() | |
Command () | |
virtual | ~Command () |
This command is used to create an operationplan.
The operationplan will have its loadplans and flowplans created when the command is created. It is assigned an id and added to the list of all operationplans when the command is committed.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
This method makes the change permanent.
A couple of notes on how this method should be implemented by the subclasses:
Reimplemented from frepple::utils::Command.
|
inline |
|
inlinevirtual |
This method reproduces a previously undone change.
A couple of notes on how this method should be implemented by the subclasses:
Reimplemented from frepple::utils::Command.
|
inlinevirtual |
This method permanently undoes the change.
A couple of notes on how this method should be implemented by the subclasses:
Reimplemented from frepple::utils::Command.
|
inlinevirtual |
This method temporarily undoes the change. The concrete subclasses most maintain information that enables redoing the changes efficiently.
A couple of notes on how this method should be implemented by the subclasses:
Reimplemented from frepple::utils::Command.