frepple::OperationSetup Class Reference

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

#include <model.h>

Inheritance diagram for frepple::OperationSetup:
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

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

Friends

class CommandErase

Detailed Description

Models an operation to convert a setup on a resource.

Definition at line 2430 of file model.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 2435 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 2445 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 2443 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 1296 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 2441 of file model.h.

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

Reimplemented from frepple::Operation.

Definition at line 2438 of file model.h.


Friends And Related Function Documentation

friend class CommandErase [friend]

Definition at line 2432 of file model.h.


Member Data Documentation

Reimplemented from frepple::Operation.

Definition at line 2444 of file model.h.

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

Definition at line 2456 of file model.h.


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

Generated on 16 Apr 2010 for frePPLe by  doxygen 1.6.1