Models an operation to convert a setup on a resource. More...

#include <model.h>

Inheritance diagram for frepple::OperationSetup:

List of all members.

Public Member Functions

virtual size_t getSize () const
virtual const MetaClassgetType () 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 MetaClassmetadata
static const Operationsetupoperation

Detailed Description

Models an operation to convert a setup on a resource.

Definition at line 2541 of file model.h.


Constructor & Destructor Documentation

frepple::OperationSetup::OperationSetup ( const string &  s) [inline, explicit]

Constructor.

Definition at line 2545 of file model.h.


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.

Definition at line 2555 of file model.h.

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.

Definition at line 2553 of file model.h.

int frepple::OperationSetup::initialize ( ) [static]

Reimplemented from frepple::Operation.

Definition at line 101 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.

Definition at line 2551 of file model.h.

void frepple::OperationSetup::writeElement ( XMLOutput ,
const Keyword ,
mode  = DEFAULT 
) const [inline, virtual]

Reimplemented from frepple::Operation.

Definition at line 2548 of file model.h.


Member Data Documentation

Reimplemented from frepple::Operation.

Definition at line 2554 of file model.h.

A pointer to the operation that is instantiated for all conversions.

Definition at line 2566 of file model.h.


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

Documentation generated for frePPLe by  doxygen