Models an operation to convert a setup on a resource. More...
#include <model.h>
Public Member Functions | |
virtual size_t | getSize () const |
virtual const MetaClass & | getType () const |
OperationSetup (const string &s) | |
OperationPlanState | setOperationPlanParameters (OperationPlan *, double, Date, Date, bool=true, bool=true) const |
virtual void | solve (Solver &s, void *v=NULL) const |
void | writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const |
Static Public Member Functions | |
static int | initialize () |
Static Public Attributes | |
static const MetaClass * | metadata |
static const Operation * | setupoperation |
Friends | |
class | CommandErase |
Models an operation to convert a setup on a resource.
Definition at line 2430 of file model.h.
frepple::OperationSetup::OperationSetup | ( | const string & | s | ) | [inline, explicit] |
virtual size_t frepple::OperationSetup::getSize | ( | ) | const [inline, virtual] |
Return the memory size of the object in bytes.
Implements frepple::utils::Object.
virtual const MetaClass& frepple::OperationSetup::getType | ( | ) | const [inline, virtual] |
This returns the type information on the object, a bit similar to the standard type_info information.
Implements frepple::utils::Object.
int frepple::OperationSetup::initialize | ( | ) | [static] |
Reimplemented from frepple::Operation.
Definition at line 101 of file operation.cpp.
OperationPlanState frepple::OperationSetup::setOperationPlanParameters | ( | OperationPlan * | opplan, | |
double | q, | |||
Date | s, | |||
Date | e, | |||
bool | preferEnd = true , |
|||
bool | execute = true | |||
) | const [virtual] |
A operation of this type enforces the following rules on its operationplans:
Implements frepple::Operation.
Definition at line 1296 of file operation.cpp.
virtual void frepple::OperationSetup::solve | ( | Solver & | s, | |
void * | v = NULL | |||
) | const [inline, virtual] |
This method is called by solver classes. The implementation of this class simply calls the solve method on the solver class. Using the polymorphism the solver can implement seperate methods for different plannable subclasses.
Reimplemented from frepple::Operation.
void frepple::OperationSetup::writeElement | ( | XMLOutput * | , | |
const Keyword & | , | |||
mode | = DEFAULT | |||
) | const [inline, virtual] |
Reimplemented from frepple::Operation.
friend class CommandErase [friend] |
const MetaClass * frepple::OperationSetup::metadata [static] |
Reimplemented from frepple::Operation.
const Operation * frepple::OperationSetup::setupoperation [static] |