MBSim |
Project Page |
Mother class for different criterias that are fulfilled or not. More...
#include <criteria_functions.h>
Public Member Functions | |
| CriteriaFunction () | |
| Constructor. | |
| virtual | ~CriteriaFunction () |
| Destructor. | |
| void | setFunction (Function1< fmatvec::Vec, fmatvec::Vec > *function_) |
| virtual int | operator() (const fmatvec::Vec &vector, const void *=NULL)=0 |
| computes the criteria | |
| virtual void | clear ()=0 |
| deletes the list of criteria results | |
| virtual bool | isBetter (const fmatvec::Vec &vector)=0 |
| compares the result of given vector with the last result and returns if it got better (for damping) | |
Public Member Functions inherited from MBSim::Function1< int, fmatvec::Vec > | |
| virtual | ~Function1 () |
| destructor | |
| virtual void | initializeUsingXML (TiXmlElement *element) |
| initialize function with XML code | |
Protected Attributes | |
|
Function1< fmatvec::Vec, fmatvec::Vec > * | function |
| function that computes the values | |
Mother class for different criterias that are fulfilled or not.
|
pure virtual |
computes the criteria
The criteria has to fulfill at least:
Implements MBSim::Function1< int, fmatvec::Vec >.
Implemented in MBSim::LocalCriteriaFunction, and MBSim::GlobalCriteriaFunction.
1.8.1.1