frepple::Plannable Class Reference

This class needs to be implemented by all classes that implement dynamic behavior in the plan. More...

#include <model.h>

Inheritance diagram for frepple::Plannable:
frepple::HasProblems frepple::Solvable frepple::Buffer frepple::Demand frepple::Operation frepple::Plan frepple::Resource frepple::BufferDefault frepple::BufferInfinite frepple::BufferProcure frepple::DemandDefault module_forecast::Forecast module_forecast::ForecastBucket frepple::OperationAlternate frepple::OperationFixedTime frepple::OperationRouting frepple::OperationSetup frepple::OperationTimePer frepple::ResourceDefault frepple::ResourceInfinite

List of all members.

Public Member Functions

virtual void endElement (XMLInput &, const Attribute &, const DataElement &)
bool getChanged () const
bool getDetectProblems () const
PlannablegetEntity () const
 Plannable ()
void setChanged (bool b=true)
void setDetectProblems (bool b)
virtual void writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const

Static Public Member Functions

static void computeProblems ()

Detailed Description

This class needs to be implemented by all classes that implement dynamic behavior in the plan.

The problem detection logic is implemented in the detectProblems() method. For performance reasons, problem detection is "lazy", i.e. problems are computed only when somebody really needs the access to the list of problems.

Definition at line 1164 of file model.h.


Constructor & Destructor Documentation

frepple::Plannable::Plannable (  )  [inline]

Constructor.

Definition at line 1168 of file model.h.


Member Function Documentation

void frepple::Plannable::computeProblems (  )  [static]

Loops through all plannable objects and updates their problems if required.

Definition at line 175 of file problem.cpp.

void frepple::Plannable::endElement ( XMLInput pIn,
const Attribute pAttr,
const DataElement pElement 
) [virtual]
bool frepple::Plannable::getChanged (  )  const [inline]

See if this entity has changed since the last problem problem detection run.

Definition at line 1183 of file model.h.

bool frepple::Plannable::getDetectProblems (  )  const [inline]

Returns whether or not this object needs to detect problems.

Definition at line 1175 of file model.h.

Plannable* frepple::Plannable::getEntity (  )  const [inline, virtual]

Implement the pure virtual function from the HasProblem class.

Implements frepple::HasProblems.

Definition at line 1190 of file model.h.

void frepple::Plannable::setChanged ( bool  b = true  )  [inline]

Mark that this entity has been updated and that the problem detection needs to be redone.

Definition at line 1187 of file model.h.

void frepple::Plannable::setDetectProblems ( bool  b  ) 

Specify whether this entity reports problems.

Definition at line 161 of file problem.cpp.

void frepple::Plannable::writeElement ( XMLOutput o,
const Keyword tag,
mode  m = DEFAULT 
) const [virtual]

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

Generated on 16 Apr 2010 for frePPLe by  doxygen 1.6.1