Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions

frepple::OperationRouting Class Reference

Represents a routing operation, i.e. an operation consisting of multiple, sequential sub-operations. More...

#include <model.h>

Inheritance diagram for frepple::OperationRouting:
frepple::Operation frepple::utils::HasName< Operation > frepple::HasLevel frepple::Plannable frepple::utils::HasDescription frepple::utils::NonCopyable frepple::utils::Tree::TreeNode frepple::utils::Object frepple::HasProblems frepple::Solvable frepple::utils::PythonExtensionBase

List of all members.

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 OperationlistgetSubOperations () const
virtual const MetaClassgetType () 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 MetaClassmetadata

Protected Member Functions

virtual bool extraInstantiate (OperationPlan *o)

Detailed Description

Represents a routing operation, i.e. an operation consisting of multiple, sequential sub-operations.

Definition at line 2533 of file model.h.


Constructor & Destructor Documentation

frepple::OperationRouting::OperationRouting ( const string &  c  )  [inline, explicit]

Constructor.

Definition at line 2537 of file model.h.

frepple::OperationRouting::~OperationRouting (  ) 

Destructor.

Definition at line 147 of file operation.cpp.


Member Function Documentation

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]

Adds a new steps to routing at the end of the routing.

Definition at line 2551 of file model.h.

void frepple::OperationRouting::addStepFront ( Operation o  )  [inline]

Adds a new steps to routing at the start of the routing.

Definition at line 2543 of file model.h.

void frepple::OperationRouting::beginElement ( XMLInput pIn,
const Attribute pAttr 
)

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]

Definition at line 2596 of file model.h.

virtual const Operationlist& frepple::OperationRouting::getSubOperations (  )  const [inline, virtual]

Return a list of all sub-operationplans.

Reimplemented from frepple::Operation.

Definition at line 2592 of file model.h.

virtual const MetaClass& frepple::OperationRouting::getType (  )  const [inline, virtual]

Definition at line 2594 of file model.h.

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.

Definition at line 2562 of file model.h.

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:

  • If an end date is given, sequentially use this method on the different steps. The steps are stepped through starting from the last step, and each step will adjust to meet the requested end date. If there is slack between the routings' step operationplans, it can be used to "absorb" the change.
  • When a start date is given, the behavior is similar to the previous case, except that we step through the operationplans from the first step this time.
  • If both a start and an end date are given, we use only the end date.
  • If there are no sub operationplans yet, apply the requested changes blindly.
    See also:
    Operation::setOperationPlanParameters

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.

Definition at line 2589 of file model.h.

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.


Member Data Documentation

Reimplemented from frepple::Operation.

Definition at line 2595 of file model.h.


The documentation for this class was generated from the following files: