frepple::CommandCreateOperationPlan Class Reference

This command is used to create an operationplan. More...

#include <model.h>

Inheritance diagram for frepple::CommandCreateOperationPlan:

Public Member Functions

 CommandCreateOperationPlan (const Operation *o, double q, Date d1, Date d2, Demand *l, OperationPlan *ow=NULL, bool makeflowsloads=true)
 
void commit ()
 
OperationPlangetOperationPlan () const
 
virtual void redo ()
 
virtual void rollback ()
 
virtual void undo ()
 
virtual ~CommandCreateOperationPlan ()
 
- Public Member Functions inherited from frepple::utils::Command
 Command ()
 
virtual ~Command ()
 

Detailed Description

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.

Definition at line 5306 of file model.h.

Constructor & Destructor Documentation

frepple::CommandCreateOperationPlan::CommandCreateOperationPlan ( const Operation o,
double  q,
Date  d1,
Date  d2,
Demand l,
OperationPlan ow = NULL,
bool  makeflowsloads = true 
)
inline

Constructor.

Definition at line 5311 of file model.h.

virtual frepple::CommandCreateOperationPlan::~CommandCreateOperationPlan ( )
inlinevirtual

Definition at line 5329 of file model.h.

Member Function Documentation

void frepple::CommandCreateOperationPlan::commit ( )
inlinevirtual

This method makes the change permanent.
A couple of notes on how this method should be implemented by the subclasses:

  • Calling the method multiple times is harmless. Only the first call is expected to do something.

Reimplemented from frepple::utils::Command.

Definition at line 5318 of file model.h.

OperationPlan* frepple::CommandCreateOperationPlan::getOperationPlan ( ) const
inline

Definition at line 5330 of file model.h.

virtual void frepple::CommandCreateOperationPlan::redo ( )
inlinevirtual

This method reproduces a previously undone change.
A couple of notes on how this method should be implemented by the subclasses:

  • Calling the method multiple times is harmless and results in the same state change as calling it only once.

Reimplemented from frepple::utils::Command.

Definition at line 5328 of file model.h.

virtual void frepple::CommandCreateOperationPlan::rollback ( )
inlinevirtual

This method permanently undoes the change.
A couple of notes on how this method should be implemented by the subclasses:

  • Calling the rollback() method multiple times is harmless. Only the first call is expected to do something.

Reimplemented from frepple::utils::Command.

Definition at line 5326 of file model.h.

virtual void frepple::CommandCreateOperationPlan::undo ( )
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:

  • Calling the method multiple times is harmless and results in the same state change as calling it only once.

Reimplemented from frepple::utils::Command.

Definition at line 5327 of file model.h.


The documentation for this class was generated from the following file: