![]() |
VR-Forces 5.0.3 Developer's Guide
|
class DtEvaluator:
Instances of DtEvaluator are used to perform the evaluation for a given DtSimCondExpr conditional expression.

Public Member Functions | |
| DtEvaluator () | |
| virtual | ~DtEvaluator () |
| virtual bool | evaluate (DtSimCondExpr *condExpr, DtLocalObject *entity, const DtSimulationServices *simManager, const DtPlan *plan=0) const =0 |
| DtEvaluator (const DtEvaluator &orig) | |
| DtEvaluator & | operator= (const DtEvaluator &orig) |
| virtual DtEvaluator * | clone ()=0 |
| virtual const DtUUID & | simulationObject (const DtSimCondExpr *condExpr) const |
Static Public Member Functions | |
| static void | setFactory (DtEvaluatorFactory *factory) |
| static DtEvaluatorFactory * | factory () |
| static void | addEvaluatorCreatorFcn (const int intType, DtEvaluatorCreatorFcn fcn) |
Static Protected Attributes | |
| static DtEvaluatorFactory * | theFactory |
| 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, and return the current result. The plan is supplied for variable substituion.
Implemented in DtEvalAnd, DtEvalResourceOp, DtEvalMissileApproachWarning, DtEvalOr, DtEvalEntAltitude, DtEvalScenarioEvent, DtEvalEntInArea, vrfAddConditionalExample::MyEvaluator, DtEvalBreached, DtEvalEntEmbarkationStateChanged, DtEvalEntLeftOfLine, DtEvalEntUnderFire, DtEvalConstant, DtEvalEntDestroyed, DtEvalEntDiGuyAppearance, DtEvalEntHasTarget, DtEvalEntIdentficationLevel, DtEvalEnvironmentalActive, DtEvalReceiveTextMessage, DtEvalSimDateTime, DtEvalSimTime, DtEvalSimTimeOfDay, DtEvalSurrender, DtEvalEntDiGuyAnimation, DtEvalEntIndependentlyTasked, DtEvalEntityCreated, DtEvalSyncMatrixPlansCompleted, DtEvalNot, and DtEvalRandom.
| DtEvaluator& DtEvaluator::operator= | ( | const DtEvaluator & | orig | ) |
assignment operator
|
pure virtual |
clone operator
Implemented in DtEvalReceiveTextMessage, DtEvalResourceOp, DtEvalMissileApproachWarning, DtEvalBreached, DtEvalEntAltitude, DtEvalSimDateTime, DtEvalSimTime, DtEvalSimTimeOfDay, DtEvalAnd, DtEvalEnvironmentalActive, DtEvalOr, DtEvalScenarioEvent, DtEvalConstant, DtEvalEntDiGuyAppearance, DtEvalEntEmbarkationStateChanged, DtEvalEntIdentficationLevel, DtEvalEntInArea, DtEvalEntityCreated, DtEvalEntUnderFire, DtEvalSyncMatrixPlansCompleted, DtEvalEntDestroyed, DtEvalEntDiGuyAnimation, DtEvalEntHasTarget, DtEvalEntLeftOfLine, DtEvalNot, 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 |