VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
northEvaluator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 
10 //class MyEvaluator:
11 //
12 //Instances of MyEvaluator are used to perform the evaluation for a
13 //MyConditionalExpression using a MySearch.
14 
15 namespace vrfAddConditionalExample
16 {
18  {
19  public:
20 
21  //constructor
22  MyEvaluator();
23 
24  //destructor
25  virtual ~MyEvaluator();
26 
27  //copy constructor
28  MyEvaluator(const MyEvaluator& orig);
29 
30  //assignment operator
31  MyEvaluator& operator=(const MyEvaluator& orig);
32 
33  //clone operator
34  virtual DtEvaluator* clone();
35 
36  //Evaluate this conditional expression for the entity with the given
37  //entity name, in the context of the given DtSimulationServices,
38  //and return the current result. The condExpr passed in must be of type
39  //MyConditionalExpression.
40  //Checks to see if the entity in the MyConditionalExpression is
41  //facing north using a MySearch. If so, it returns true. The the modifier
42  //flag in MyConditionalExpression is passed to the search which optionally
43  //expands the test to return true if the entity and/or any of its
44  //subordinates are facing north.
45  virtual bool evaluate(DtSimCondExpr* condExpr,
46  DtLocalObject* owner, const DtSimulationServices* simManager, const DtPlan* plan = 0) const;
47 
48  public:
49 
50  //Returns a newly created MyEvaluator.
51  static DtEvaluator * creator();
52 
53  };
54 }
virtual DtEvaluator * clone()
clone operator
MyEvaluator & operator=(const MyEvaluator &orig)
class DtEvalSimulationObject:
Definition: evalSimulationObject.h:19
Definition: northEvaluator.h:17
virtual bool evaluate(DtSimCondExpr *condExpr, DtLocalObject *owner, const DtSimulationServices *simManager, const DtPlan *plan=0) const
Evaluate the conditional expression for the entity, and return the current result. The plan is supplied for variable substituion.
class DtEvaluator:
Definition: evaluator.h:35
class DtPlan:
Definition: plan.h:92
DtSimCondExpr is an abstract base class representing various Conditional Expressions used by the Plan...
Definition: simCondExpr.h:53
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:94
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)