17#include <vrfobjcore/vrfProcessStateRepository.h>
18#include <readerWriter/rwReal.h>
19#include <readerWriter/rwBoolean.h>
20#include <vlutil/vlTime.h>
21#include <vrfutil/rwEntityTypeList.h>
26class DtEntityIdentifier;
53 DtReaderWriterRegistry* parentRegistry = 0);
62 DtReaderWriterRegistry* parentRegistry = 0);
82 virtual DtVrfProcessStateRepository*
clone(
const DtString& rwName = DtString::nullString(),
83 DtReaderWriterRegistry* parentRegistry = 0)
const override;
90 virtual DtString
type()
const override;
97 virtual bool init()
override;
197 bool writeUnspecified =
false,
198 const DtFilename& path = DtReaderWriter::appPath())
override;
209 const DtReaderWriter::SearchPaths& searchPaths,
210 const DtVariableBindingsList& variableBindings)
override;
232 const DtString& rwName, DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
virtual DtRwrContactInfoList * contactInfoList()
Gets the list of radar contact information objects (non-const version)
DtRwBoolean myRwrEnabled
RWR enabled state.
Definition radarWarningReceiverPSR.h:277
virtual bool rwrEnabled() const
Checks if the RWR is enabled.
virtual DtTime nextDetectAttempt() const
Gets the simulation time for the next detection attempt.
virtual void setTypesToDetectForTask(const DtRwEntityTypeList &objectTypes)
Sets the task-specific entity types to detect.
virtual DtRwRwrContactInfo * createRwrContactInfo() const
Creates a new radar contact information object.
virtual DtString type() const override
Gets the type identifier for this PSR.
static DtVrfProcessStateRepository * creator(const DtString &rwName, DtLocalObject *vrfObject, DtReaderWriterRegistry *parentRegistry)
Factory function to create a new instance of this PSR.
virtual void clearTypesToDetectForTask()
Clears the task-specific entity types to detect.
DtRwReal myNextDetectAttempt
Next detection time.
Definition radarWarningReceiverPSR.h:272
virtual DtRwRwrContactInfo * lookupContactById(const DtUUID &id) const
Looks up contact information by entity ID.
virtual DtRwrContactInfoList * createRwrContactInfoList(const DtString &name)
Creates a new contact information list.
virtual ~DtRadarWarningReceiverPSR() override
Virtual destructor.
virtual void clearContactInfoList()
Clears all radar contacts.
DtRwEntityTypeList myTaskDetectionTypes
Task-specific entity types to detect.
Definition radarWarningReceiverPSR.h:267
virtual const DtRwEntityTypeList & typesToDetectForTask() const
Gets the task-specific entity types to detect.
DtRadarWarningReceiverPSR(DtLocalObject *vrfObject, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
Constructor with VRF object and optional name.
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const override
Creates a clone of this PSR.
DtRadarWarningReceiverPSR(const DtRadarWarningReceiverPSR &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
Copy constructor.
virtual const DtRwrContactInfoList * contactInfoList() const
Gets the list of radar contact information objects (const version)
virtual void setNextDetectAttempt(DtTime time)
Sets the simulation time for the next detection attempt.
bool myMutableMapContactNamesToContactIds
Flag for contact name to ID mapping.
Definition radarWarningReceiverPSR.h:261
DtRadarWarningReceiverPSR & operator=(const DtRadarWarningReceiverPSR &orig)
Assignment operator (not implemented)
virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) override
Reads this PSR from a stream.
virtual bool init() override
Initializes the PSR after creation.
virtual void putSelf(std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtReaderWriter::appPath()) override
Writes this PSR to a file.
DtRwrContactInfoList * myContactInfoList
Maps contact IDs to contact names.
Definition radarWarningReceiverPSR.h:255
virtual void setRwrEnabled(bool enabled)
Sets whether the RWR is enabled.
Export macros for the VREngage Object Core library.
#define VREVRFOBJCORE_DLL
Platform-specific DLL export/import declaration.
Definition export.h:27
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
const char DtVreRadarWarningReceiverPSRType[]
Type identifier string for the VREngage radar warning receiver PSR.
Definition radarWarningReceiverPSR.h:35