Represents a routing operation, i.e. an operation consisting of multiple, sequential sub-operations. More...
#include <model.h>
Public Member Functions | |
void | addStepBack (Operation *o) |
void | addStepFront (Operation *o) |
void | beginElement (XMLInput &, const Attribute &) |
void | endElement (XMLInput &, const Attribute &, const DataElement &) |
virtual PyObject * | getattro (const Attribute &) |
virtual size_t | getSize () const |
virtual const Operationlist & | getSubOperations () const |
virtual const MetaClass & | getType () const |
OperationRouting (const string &c) | |
void | removeSubOperation (Operation *o) |
OperationPlanState | setOperationPlanParameters (OperationPlan *, double, Date, Date, bool=true, bool=true) const |
virtual void | solve (Solver &s, void *v=NULL) const |
virtual void | writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const |
~OperationRouting () | |
Static Public Member Functions | |
static PyObject * | addStep (PyObject *, PyObject *) |
static int | initialize () |
Static Public Attributes | |
static const MetaClass * | metadata |
Protected Member Functions | |
virtual bool | extraInstantiate (OperationPlan *o) |
Represents a routing operation, i.e. an operation consisting of multiple, sequential sub-operations.
Definition at line 2533 of file model.h.
frepple::OperationRouting::OperationRouting | ( | const string & | c | ) | [inline, explicit] |
frepple::OperationRouting::~OperationRouting | ( | ) |
Destructor.
Definition at line 147 of file operation.cpp.
PyObject * frepple::OperationRouting::addStep | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
Add one or more steps to a routing.
Definition at line 1605 of file operation.cpp.
void frepple::OperationRouting::addStepBack | ( | Operation * | o | ) | [inline] |
void frepple::OperationRouting::addStepFront | ( | Operation * | o | ) | [inline] |
Reimplemented from frepple::Operation.
Definition at line 913 of file operation.cpp.
void frepple::OperationRouting::endElement | ( | XMLInput & | pIn, | |
const Attribute & | pAttr, | |||
const DataElement & | pElement | |||
) |
Reimplemented from frepple::Operation.
Definition at line 922 of file operation.cpp.
bool frepple::OperationRouting::extraInstantiate | ( | OperationPlan * | o | ) | [protected, virtual] |
Extra logic to be used when instantiating an operationplan.
Reimplemented from frepple::Operation.
Definition at line 1001 of file operation.cpp.
PyObject * frepple::OperationRouting::getattro | ( | const Attribute & | attr | ) | [virtual] |
Reimplemented from frepple::Operation.
Definition at line 1591 of file operation.cpp.
virtual size_t frepple::OperationRouting::getSize | ( | ) | const [inline, virtual] |
virtual const Operationlist& frepple::OperationRouting::getSubOperations | ( | ) | const [inline, virtual] |
Return a list of all sub-operationplans.
Reimplemented from frepple::Operation.
virtual const MetaClass& frepple::OperationRouting::getType | ( | ) | const [inline, virtual] |
int frepple::OperationRouting::initialize | ( | ) | [static] |
Reimplemented from frepple::Operation.
Definition at line 89 of file operation.cpp.
void frepple::OperationRouting::removeSubOperation | ( | Operation * | o | ) | [inline, virtual] |
Remove a step from a routing.
Reimplemented from frepple::Operation.
OperationPlanState frepple::OperationRouting::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 936 of file operation.cpp.
virtual void frepple::OperationRouting::solve | ( | Solver & | s, | |
void * | v = NULL | |||
) | const [inline, virtual] |
Reimplemented from frepple::Operation.
void frepple::OperationRouting::writeElement | ( | XMLOutput * | o, | |
const Keyword & | tag, | |||
mode | m = DEFAULT | |||
) | const [virtual] |
Reimplemented from frepple::Operation.
Definition at line 886 of file operation.cpp.
const MetaClass * frepple::OperationRouting::metadata [static] |
Reimplemented from frepple::Operation.