Models an operation that takes a fixed amount of time, independent of the quantity. More...
#include <model.h>
Public Member Functions | |
void | endElement (XMLInput &, const Attribute &, const DataElement &) |
virtual PyObject * | getattro (const Attribute &) |
const TimePeriod | getDuration () const |
virtual size_t | getSize () const |
virtual const MetaClass & | getType () const |
OperationFixedTime (const string &s) | |
virtual int | setattro (const Attribute &, const PythonObject &) |
void | setDuration (TimePeriod t) |
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 |
Protected Member Functions | |
virtual bool | extraInstantiate (OperationPlan *o) |
Models an operation that takes a fixed amount of time, independent of the quantity.
Definition at line 2373 of file model.h.
frepple::OperationFixedTime::OperationFixedTime | ( | const string & | s | ) | [inline, explicit] |
void frepple::OperationFixedTime::endElement | ( | XMLInput & | pIn, | |
const Attribute & | pAttr, | |||
const DataElement & | pElement | |||
) |
Reimplemented from frepple::Operation.
Definition at line 707 of file operation.cpp.
bool frepple::OperationFixedTime::extraInstantiate | ( | OperationPlan * | o | ) | [protected, virtual] |
Extra logic called when instantiating an operationplan.
When the function returns false the creation of the operationplan is denied and it is deleted.
Reimplemented from frepple::Operation.
Definition at line 621 of file operation.cpp.
PyObject * frepple::OperationFixedTime::getattro | ( | const Attribute & | attr | ) | [virtual] |
Reimplemented from frepple::Operation.
Definition at line 1477 of file operation.cpp.
const TimePeriod frepple::OperationFixedTime::getDuration | ( | ) | const [inline] |
virtual size_t frepple::OperationFixedTime::getSize | ( | ) | const [inline, virtual] |
virtual const MetaClass& frepple::OperationFixedTime::getType | ( | ) | const [inline, virtual] |
int frepple::OperationFixedTime::initialize | ( | ) | [static] |
Reimplemented from frepple::Operation.
Definition at line 55 of file operation.cpp.
int frepple::OperationFixedTime::setattro | ( | const Attribute & | attr, | |
const PythonObject & | field | |||
) | [virtual] |
Reimplemented from frepple::Operation.
Definition at line 1485 of file operation.cpp.
void frepple::OperationFixedTime::setDuration | ( | TimePeriod | t | ) | [inline] |
OperationPlanState frepple::OperationFixedTime::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 583 of file operation.cpp.
virtual void frepple::OperationFixedTime::solve | ( | Solver & | s, | |
void * | v = NULL | |||
) | const [inline, virtual] |
Reimplemented from frepple::Operation.
void frepple::OperationFixedTime::writeElement | ( | XMLOutput * | o, | |
const Keyword & | tag, | |||
mode | m = DEFAULT | |||
) | const [virtual] |
Reimplemented from frepple::Operation.
Definition at line 686 of file operation.cpp.
const MetaClass * frepple::OperationFixedTime::metadata [static] |
Reimplemented from frepple::Operation.