VR-Forces 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);
95  virtual ~DtPrioritySorRangeTargetRankOperator() override;
96 
98  virtual bool operator()(const DtRwSensorContactInfo* contact1, const DtRwSensorContactInfo* contact2) const override;
99 
100 protected:
103  virtual bool checkPriority(const DtSimObject* obj1, const DtSimObject* obj2, bool& result) const;
104 
107  virtual bool checkSectorOfResponsibility(const DtSimObject* obj1, const DtSimObject* obj2, bool& result) const;
108 
111  virtual bool checkRange(const DtSimObject* obj1, const DtSimObject* obj2, bool& result) const;
112 
115  virtual bool checkTargetPriority(const DtSimObject* obj1, const DtSimObject* obj2, bool& result) const;
116 
117 };
118 
#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 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:96
virtual ~DtPrioritySorRangeTargetRankOperator() override
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:80
DtTargetRankOperatorWrapper & operator=(const DtTargetRankOperatorWrapper &orig)
Shallow copy – only copies pointer to rankOp.
virtual bool operator()(const DtRwSensorContactInfo *contact1, const DtRwSensorContactInfo *contact2) const override
Returns true if contact1 is a higher priority target than contact2.
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)