![]() |
VR-Forces 4.0.4 Class Documentation
|

Public Member Functions | |
| DtEvalResourceOp () | |
| constructor | |
| virtual | ~DtEvalResourceOp () |
| destructor | |
| DtEvalResourceOp (const DtEvalResourceOp &orig) | |
| copy constructor | |
| DtEvalResourceOp & | operator= (const DtEvalResourceOp &orig) |
| assignment operator | |
| virtual DtEvaluator * | clone () |
| clone operator | |
| virtual bool | evaluate (DtSimCondExpr *condExpr, const DtString &echelonId, DtSimManager *simManager) const |
| Evaluate this conditional expression for the entity with the given echelonId, in the context of the given simManager, and return the current result. | |
Static Public Member Functions | |
| static DtEvaluator * | creator () |
| Returns a newly created DtEvalResourceOp. | |
Protected Member Functions | |
| virtual bool | getResourceValue (const DtCeResourceOperator &ceResourceOp, const DtString &echelonId, DtSimManager *simManager, DtReal &result) const |
| Get the resource's value relative to the given Plan, return False if the resource value isn't available. | |
constructor
| virtual DtEvalResourceOp::~DtEvalResourceOp | ( | ) | [virtual] |
destructor
| DtEvalResourceOp::DtEvalResourceOp | ( | const DtEvalResourceOp & | orig | ) |
copy constructor
| DtEvalResourceOp& DtEvalResourceOp::operator= | ( | const DtEvalResourceOp & | orig | ) |
assignment operator
| virtual DtEvaluator* DtEvalResourceOp::clone | ( | ) | [virtual] |
clone operator
Implements DtEvaluator.
| virtual bool DtEvalResourceOp::evaluate | ( | DtSimCondExpr * | condExpr, |
| const DtString & | echelonId, | ||
| DtSimManager * | simManager | ||
| ) | const [virtual] |
Evaluate this conditional expression for the entity with the given echelonId, in the context of the given simManager, and return the current result.
The condExpr passed in must be of type DtCeResourceOperator. Looks up the entity's resource given in the DtCeResourceOperator conditional expression, and then tests the value of the resource against the given comparison value, using the given comparison operator.
Implements DtEvaluator.
| static DtEvaluator* DtEvalResourceOp::creator | ( | ) | [static] |
Returns a newly created DtEvalResourceOp.
| virtual bool DtEvalResourceOp::getResourceValue | ( | const DtCeResourceOperator & | ceResourceOp, |
| const DtString & | echelonId, | ||
| DtSimManager * | simManager, | ||
| DtReal & | result | ||
| ) | const [protected, virtual] |
Get the resource's value relative to the given Plan, return False if the resource value isn't available.