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 |
Detailed Description
Constructor & Destructor Documentation
frepple::OperationSetup::OperationSetup | ( | const string & | s | ) | [inline, explicit] |
Member Function Documentation
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 100 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:
- The duration is calculated based on the conversion type.
Implements frepple::Operation.
Definition at line 1298 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.
Member Data Documentation
const MetaClass * frepple::OperationSetup::metadata [static] |
Reimplemented from frepple::Operation.
const Operation * frepple::OperationSetup::setupoperation [static] |
The documentation for this class was generated from the following files:
Documentation generated for frePPLe by
