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:

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


Constructor & Destructor Documentation

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

Constructor.

Definition at line 1218 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 178 of file problem.cpp.

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

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

Definition at line 1233 of file model.h.

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

Returns whether or not this object needs to detect problems.

Definition at line 1225 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 1240 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 1237 of file model.h.

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

Specify whether this entity reports problems.

Definition at line 164 of file problem.cpp.


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

Documentation generated for frePPLe by  doxygen