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:

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
 
- Public Member Functions inherited from frepple::HasProblems
 HasProblems ()
 
virtual void updateProblems ()=0
 
virtual ~HasProblems ()
 
- Public Member Functions inherited from frepple::Solvable
virtual void solve (Solver &s, void *v=NULL) const
 
virtual ~Solvable ()
 

Static Public Member Functions

static void computeProblems ()
 
- Static Public Member Functions inherited from frepple::HasProblems
static EntityIterator beginEntity ()
 
static EntityIterator endEntity ()
 

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 936 of file model.h.

Constructor & Destructor Documentation

frepple::Plannable::Plannable ( )
inline

Constructor.

Definition at line 940 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 171 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 955 of file model.h.

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

Returns whether or not this object needs to detect problems.

Definition at line 947 of file model.h.

Plannable* frepple::Plannable::getEntity ( ) const
inlinevirtual

Implement the pure virtual function from the HasProblem class.

Implements frepple::HasProblems.

Definition at line 962 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 959 of file model.h.

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

Specify whether this entity reports problems.

Definition at line 157 of file problem.cpp.


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