![]() |
VR-Forces 4.8 Class Documentation
|
class DtEvaluator: More...

Public Member Functions | |
| DtEvaluator () | |
| constructor - condExpr is the conditional expression to be evaluated. More... | |
| virtual | ~DtEvaluator () |
| destructor More... | |
| virtual bool | evaluate (DtSimCondExpr *condExpr, const DtUUID &entity, DtSimManager *simManager, const DtPlan *plan=0) const =0 |
| Evaluate the conditional expression for the entity in the context of the given simManager, and return the current result. More... | |
| DtEvaluator (const DtEvaluator &orig) | |
| copy constructor More... | |
| DtEvaluator & | operator= (const DtEvaluator &orig) |
| assignment operator More... | |
| virtual DtEvaluator * | clone ()=0 |
| clone operator More... | |
| virtual const DtUUID & | simulationObject (const DtSimCondExpr *condExpr) const |
| If there is a simulation object that satisfied the evaluation of this condition then it is returned here. More... | |
Static Public Member Functions | |
| static void | setFactory (DtEvaluatorFactory *factory) |
| Set/get the DtEvaluator class factory. More... | |
| static DtEvaluatorFactory * | factory () |
| static void | addEvaluatorCreatorFcn (const int intType, DtEvaluatorCreatorFcn fcn) |
| Adds a evaluator creator member function to the evaluator factory. More... | |
Static Protected Attributes | |
| static DtEvaluatorFactory * | theFactory |
class DtEvaluator:
Instances of DtEvaluator are used to perform the evaluation for a given DtSimCondExpr conditional expression.
| DtEvaluator::DtEvaluator | ( | ) |
constructor - condExpr is the conditional expression to be evaluated.
|
virtual |
destructor
| DtEvaluator::DtEvaluator | ( | const DtEvaluator & | orig | ) |
copy constructor
|
pure virtual |
Evaluate the conditional expression for the entity in the context of the given simManager, and return the current result.
The plan is supplied for variable substituion
Implemented in DtEvalMissileApproachWarning, DtEvalResourceOp, DtEvalAnd, DtEvalOr, DtEvalScenarioEvent, DtEvalEntInArea, vrfAddConditionalExample::MyEvaluator, DtEvalBreached, DtEvalEntAltitude, DtEvalEntEmbarkationStateChanged, DtEvalEntLeftOfLine, DtEvalEntUnderFire, DtEvalConstant, DtEvalEntDestroyed, DtEvalEntDiGuyAppearance, DtEvalEntHasTarget, DtEvalEntIdentficationLevel, DtEvalEnvironmentalActive, DtEvalSimDateTime, DtEvalSimTime, DtEvalSimTimeOfDay, DtEvalSurrender, DtEvalEntDiGuyAnimation, DtEvalEntIndependentlyTasked, DtEvalEntityCreated, DtEvalReceiveTextMessage, DtEvalNot, and DtEvalRandom.
| DtEvaluator& DtEvaluator::operator= | ( | const DtEvaluator & | orig | ) |
assignment operator
|
pure virtual |
clone operator
Implemented in DtEvalMissileApproachWarning, DtEvalResourceOp, DtEvalReceiveTextMessage, DtEvalBreached, DtEvalSimDateTime, DtEvalSimTime, DtEvalSimTimeOfDay, DtEvalEnvironmentalActive, DtEvalScenarioEvent, DtEvalAnd, DtEvalConstant, DtEvalEntAltitude, DtEvalEntDiGuyAppearance, DtEvalEntEmbarkationStateChanged, DtEvalEntIdentficationLevel, DtEvalEntInArea, DtEvalEntityCreated, DtEvalEntUnderFire, DtEvalEntDestroyed, DtEvalEntDiGuyAnimation, DtEvalEntHasTarget, DtEvalEntLeftOfLine, DtEvalNot, DtEvalOr, DtEvalRandom, DtEvalSurrender, vrfAddConditionalExample::MyEvaluator, and DtEvalEntIndependentlyTasked.
|
virtual |
If there is a simulation object that satisfied the evaluation of this condition then it is returned here.
Default returns DtUUID::nullUUID()
Reimplemented in DtEvalAnd, DtEvalOr, DtEvalNot, and DtEvalSimulationObject.
|
static |
Set/get the DtEvaluator class factory.
|
static |
|
static |
Adds a evaluator creator member function to the evaluator factory.
|
staticprotected |