VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
gpsJammerController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
16 
17 #include "vlpi/disEnums.h"
18 
19 class DtString;
20 class DtSimManager;
21 class DtSimMessage;
22 class DtSimRadio;
23 
24 class DtVrfObjectMessage;
28 
30 
32 {
33 public:
34 
37  DtGpsJammerController(const DtString& name,
38  DtLocalObject* owner,
39  DtSimulationServices* simManager,
40  DtComponentDescriptor* desc = 0,
41  DtReaderWriterRegistry* parentRegistry = 0);
42 
44  virtual ~DtGpsJammerController() override;
45 
47  virtual void tick() override;
48 
51  virtual bool tickWhileDestroyed() const override;
52 
55  virtual bool init() override;
56 
58  virtual void preFirstTickInit() override;
59 
62  virtual const char* type() const override;
63 
67  static DtSimComponent* creator(const DtString& name,
68  DtLocalObject* owner,
69  DtSimulationServices* simManager,
70  DtComponentDescriptor* desc = 0,
71  DtReaderWriterRegistry* parentRegistry = 0);
72 
74  virtual void registerSetRequestMsgCallbacks();
75 
76  static void setGpsJammerCallback(DtSimMessage* msg, void* usrData);
77  virtual void processSetGpsJammer(DtSimMessage* msg);
78 
79 protected:
80 
82  virtual bool createAndInitRadioTransmitter();
83 
85  virtual void updateRadioTransmitterFromPsr();
86 
89  virtual void removeRadioTransmitter();
90 
96  virtual bool createPSR();
97 
98 private:
101 
104 
107 
108 protected:
110 
112 
116 };
117 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfRadioTransmitter * myRadioTransmitter
Definition: gpsJammerController.h:109
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
const DtGpsJammerControllerDescriptor * myGpsJammerDescriptor
Definition: gpsJammerController.h:111
Definition: simRadio.h:30
Definition: vrfRadioTransmitter.h:25
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
virtual const char * type() const override=0
This returns a string from compTypes.h, and identifies the type of component.
Definition: readerWriterRegistry.h:39
Definition: gpsJammerController.h:31
virtual bool init() override
Calls setRadio()
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
virtual bool tickWhileDestroyed() const
If the component returns true here, it will be ticked regardless of the destroyed state of the host e...
DtGpsJammerControllerPSR * myProcessState
Container for state data associated with this component. This state is saved and restored as part of ...
Definition: gpsJammerController.h:115
The base class for all messages to/from a specific DtVrfObject. Various subclasses of this class will...
Definition: vrfObjectMessage.h:30
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:31
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
The central class of a DtLocalObject for all communications to and from the object. This class manages all communications on a specific DtLocalObject, though both simulation internal communication, and communication though the simulated radios of the object. All communication is done though the use of the DtVrfObjectMessage class and its subclasses. Callbacks can be registered on this interface which will be called on receipt of a message by this entity. Messages can be sent from this entity by using the message sending functions. These messages may be sent though the SimInternal message mechanism, or the radio message system. Radios will not exist until createRadiosFromDescriptorList() or createRadiosFromDescriptorList(const DtRadioDescriptorList& descList) is called.
Definition: vrfObjectCommunicationInterface.h:40
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:137
class DtGpsJammerControllerPSR:
Definition: gpsJammerControllerPSR.h:26
Arguments passed by the DtLocalObjectManager::addNameChangedCallback callbacks.
Definition: localObjectManager.h:117
DtTacanComponentDescriptor; descriptor for the DtTacanComponent component.
Definition: gpsJammerControllerDescriptor.h:24
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)