Models an operation whose duration is the sum of a constant time, plus a cetain time per unit. More...
#include <model.h>
Public Member Functions | |
void | endElement (XMLInput &, const Attribute &, const DataElement &) |
virtual PyObject * | getattro (const Attribute &) |
TimePeriod | getDuration () const |
TimePeriod | getDurationPer () const |
virtual size_t | getSize () const |
virtual const MetaClass & | getType () const |
OperationTimePer (const string &s) | |
virtual int | setattro (const Attribute &, const PythonObject &) |
void | setDuration (TimePeriod t) |
void | setDurationPer (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 |
Models an operation whose duration is the sum of a constant time, plus a cetain time per unit.
Definition at line 2463 of file model.h.
frepple::OperationTimePer::OperationTimePer | ( | const string & | s | ) | [inline, explicit] |
void frepple::OperationTimePer::endElement | ( | XMLInput & | pIn, | |
const Attribute & | pAttr, | |||
const DataElement & | pElement | |||
) |
Reimplemented from frepple::Operation.
Definition at line 874 of file operation.cpp.
PyObject * frepple::OperationTimePer::getattro | ( | const Attribute & | attr | ) | [virtual] |
Reimplemented from frepple::Operation.
Definition at line 1495 of file operation.cpp.
TimePeriod frepple::OperationTimePer::getDuration | ( | ) | const [inline] |
TimePeriod frepple::OperationTimePer::getDurationPer | ( | ) | const [inline] |
virtual size_t frepple::OperationTimePer::getSize | ( | ) | const [inline, virtual] |
virtual const MetaClass& frepple::OperationTimePer::getType | ( | ) | const [inline, virtual] |
int frepple::OperationTimePer::initialize | ( | ) | [static] |
Reimplemented from frepple::Operation.
Definition at line 66 of file operation.cpp.
int frepple::OperationTimePer::setattro | ( | const Attribute & | attr, | |
const PythonObject & | field | |||
) | [virtual] |
Reimplemented from frepple::Operation.
Definition at line 1505 of file operation.cpp.
void frepple::OperationTimePer::setDuration | ( | TimePeriod | t | ) | [inline] |
void frepple::OperationTimePer::setDurationPer | ( | TimePeriod | t | ) | [inline] |
OperationPlanState frepple::OperationTimePer::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 718 of file operation.cpp.
virtual void frepple::OperationTimePer::solve | ( | Solver & | s, | |
void * | v = NULL | |||
) | const [inline, virtual] |
Reimplemented from frepple::Operation.
void frepple::OperationTimePer::writeElement | ( | XMLOutput * | o, | |
const Keyword & | tag, | |||
mode | m = DEFAULT | |||
) | const [virtual] |
Reimplemented from frepple::Operation.
Definition at line 852 of file operation.cpp.
const MetaClass * frepple::OperationTimePer::metadata [static] |
Reimplemented from frepple::Operation.