VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions
DtEvalResourceOp Class Reference
Inheritance diagram for DtEvalResourceOp:
Inheritance graph
[legend]

List of all members.

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 & Destructor Documentation

constructor

virtual DtEvalResourceOp::~DtEvalResourceOp ( ) [virtual]

destructor

copy constructor


Member Function Documentation

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.


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)