VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
targetRankOperator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
15 
16 class DtLocalObject;
17 class DtSimObject;
21 
29 {
30 private:
36  DtTargetRankOperator& operator=(const DtTargetRankOperator& orig);
37 
38 public:
40  virtual ~DtTargetRankOperator();
41 
43  virtual bool operator()(const DtRwSensorContactInfo* contact1,
44  const DtRwSensorContactInfo* contact2) const = 0;
45 
46 protected:
50 };
51 
57 {
58 private:
61 public:
69 
71  bool operator()(const DtRwSensorContactInfo* contact1,
72  const DtRwSensorContactInfo* contact2) const;
73 
74 protected:
76 };
77 
83 {
84 private:
91 
92 public:
94  const DtTargetSelectionCriteria* criteria, const DtLocalObject* vrfObj);
96 
98  virtual bool operator()(const DtRwSensorContactInfo* contact1,
99  const DtRwSensorContactInfo* contact2) const;
100 
101 protected:
104  virtual bool checkPriority(const DtSimObject* obj1, const DtSimObject* obj2, bool& result) const;
105 
108  virtual bool checkSectorOfResponsibility(const DtSimObject* obj1, const DtSimObject* obj2, bool& result) const;
109 
112  virtual bool checkRange(const DtSimObject* obj1, const DtSimObject* obj2, bool& result) const;
113 
116  virtual bool checkTargetPriority(const DtSimObject* obj1, const DtSimObject* obj2, bool& result) const;
117 
118 };
119 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual bool checkSectorOfResponsibility(const DtSimObject *obj1, const DtSimObject *obj2, bool &result) const
Returns true if the SOR check is conclusive (the objects are in different SORs) and if so...
virtual bool checkRange(const DtSimObject *obj1, const DtSimObject *obj2, bool &result) const
Returns true if the range check is conclusive (the objects are at different ranges) and if so...
const DtLocalObject * myVrfObject
Definition: targetRankOperator.h:48
DtTargetRankOperator * myRankOperator
Definition: targetRankOperator.h:75
virtual bool operator()(const DtRwSensorContactInfo *contact1, const DtRwSensorContactInfo *contact2) const
Returns true if contact1 is a higher priority target than contact2.
virtual bool checkPriority(const DtSimObject *obj1, const DtSimObject *obj2, bool &result) const
Returns true if the priority check is conclusive (the objects are in different priorities) and if so...
virtual bool checkTargetPriority(const DtSimObject *obj1, const DtSimObject *obj2, bool &result) const
Returns true if the priority check is conclusive (the objects are in different priorities) and if so...
This class represents the data gathered by a sensor about a particular single sensor contact...
Definition: rwSensorContactInfo.h:68
Defines a criteria for choosing targets for a single weapon system. This class stores all the informa...
Definition: targetSelectionCriteria.h:27
const DtTargetSelectionCriteria * myTargetSelectionCriteria
Definition: targetRankOperator.h:47
Functor class which is used in a std::set to rank targets against each other. This abstract base clas...
Definition: targetRankOperator.h:28
The DtTargetRankOperatorWrapper class wraps a pointer to a DtTargetRankOperator in an interface that ...
Definition: targetRankOperator.h:56
DtPrioritySorRangeTargetRankOperator()
Not Implemented.
DtTargetRankOperatorWrapper()
Not implemented.
This concrete implementation of DtTargetRankOperator ranks targets based first on the priority lists ...
Definition: targetRankOperator.h:82
bool operator()(const DtRwSensorContactInfo *contact1, const DtRwSensorContactInfo *contact2) const
Calls myRankOperator->operator().
const DtSimulationServices * mySimulationServices
Definition: targetRankOperator.h:49
DtPrioritySorRangeTargetRankOperator & operator=(const DtPrioritySorRangeTargetRankOperator &orig)
Not Implemented.
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:79
DtTargetRankOperatorWrapper & operator=(const DtTargetRankOperatorWrapper &orig)
Shallow copy – only copies pointer to rankOp.
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 Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)