20 #include <matrix/vlVector.h>
22 #include <vlutil/vlTime.h>
31 #include <tbb/spin_mutex.h>
41 class DtThreadMessageList;
58 class DtEchelonRoleName;
75 class DtScriptedObjects;
100 class DtEnumDictionary;
108 class DtStateDataManager;
111 namespace makVrfEvents
113 class DtEventManager;
116 class DtFireInteraction;
117 class DtDataInteraction;
118 class DtCommentInteraction;
173 virtual bool createScheduler();
174 virtual bool createMessageInterface();
175 virtual bool createFrameRateMonitor();
177 virtual bool createVrfSimSettingsManager();
178 virtual bool createParallelQueue();
179 virtual bool createDatabaseLogger();
196 virtual bool createAndDeliverMessage(
197 const DtSimulationAddress& recipient,
199 bool overrideTimestampOrder =
true,
200 bool sendImmediately =
false)
const;
203 virtual bool allowInfiniteObjects()
const;
214 virtual void removeTickEntry(
DtSimTickFunction tickFunction,
void* userData)
const;
220 virtual void addPostTickEntry(
DtSimTickFunction tickFunction,
void* userData)
const;
221 virtual void removePostTickEntry(
DtSimTickFunction tickFunction,
void* userData)
const;
238 virtual bool canTransferObjects()
const;
241 virtual double simTime()
const;
242 virtual double dT()
const;
243 virtual double elapsedRealTime()
const;
244 virtual double absRealTime()
const;
245 virtual double approximateElapsedRealTime()
const;
246 virtual bool isPaused()
const;
247 virtual double timeMultiplier()
const;
253 virtual void setSimTime(
double d);
254 virtual void setTimeMultiplier(
double d);
257 virtual void setExerciseStartTime(
double);
258 virtual double exerciseTime()
const;
259 virtual double exerciseStartTime()
const;
270 virtual void pause();
330 virtual void sendServerMessage(
const DtString&,
int severity = DtNlWarn,
const DtSimulationAddress& addr = DtSimSendToAll);
435 virtual bool runFullyThreaded()
const;
491 virtual void setScenarioRunId(
const DtUUID&);
492 virtual const DtUUID& scenarioRunId()
const;
495 virtual void setRejectMismatchedScenarioMessages(
bool);
496 virtual bool rejectMismatchedScenarioMessages()
const;
519 virtual DtU32 scenarioCapabilities()
const;
520 virtual void setScenarioCapabilities(DtU32 v);
532 static void TickFunction(
void* userData);
537 virtual void registerInterfaceCallbacks();
541 virtual const DtSimulationAddress& messageAddress()
const;
544 virtual unsigned long sequenceNumber();
548 virtual void setSequenceNumber(
unsigned long sequenceNumber);
563 virtual int vrfSessionId()
const;
566 virtual int vrfMessageVersionSupported()
const;
570 virtual void setRunUntilTime(
double);
571 virtual double runUntilTime()
const;
574 virtual void stopSimulationUntilTimer();
577 static void runUntilTimerCompleteCallback(
DtTimer*);
578 virtual void processRunUntilComplete();
586 virtual void setMaxTasks(
int);
592 virtual void doNotSelfReflect(
unsigned int);
593 virtual void selfReflect(
unsigned int);
596 const DtEnumDictionary* enumerationDictionary()
const;
599 virtual void clearEnumerations();
602 virtual bool initializeEnumerations();
605 virtual bool loadEnumerations(
const DtFilename&);
608 virtual DtFilename enumerationsFileDirectory()
const;
609 virtual void setEnumerationsFileDirectory(
const DtFilename& directory);
625 static void setBlockOnAsynchronousOperations(
bool shouldBlock);
626 static bool blockOnAsynchronousOperations();
628 virtual void setupMessagesToNotSelfReflect();
virtual DtSimInternalCommunicationManager * simInternalCommunicationManager() const
Definition: simManager.h:845
DtObjectConsoleManager * myObjectConsoleManager
Definition: simManager.h:682
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtTerrainProfileRequestManager * terrainProfileRequestManager()
Get/set terrain profile request manager.
Definition: simManager.h:730
Definition: simTerrainRequestManager.h:137
This class will be responsible for handling requests to return resources for a particular entity (or ...
Definition: resourceMonitor.h:60
Instances of class DtScheduler maintain a list of DtTimer objects. It ticks all timer objects each ti...
Definition: scheduler.h:22
DtFireManager * myFireManager
Definition: simManager.h:658
DtSimImguiThread * mySimImguiManager
Definition: simManager.h:691
DtObjectGeometricModelsManager * myObjectModelsManager
Definition: simManager.h:674
The DtAmmunitionManager is a clas that will maintain ammunition (that which is not published...
Definition: ammunitionManager.h:17
DtTimer * mySimulationUntilTimer
If non-null this scenario is only scheduled to run for the given amount of time delta from the curren...
Definition: simManager.h:695
DtDiGuyCharacterDataManager * diGuyCharacterManager() const
Definition: simManager.h:765
Instances of DtTimer are used to maintain the information needed to represent some kind of scheduled ...
Definition: timer.h:38
DtGlobalPlanManager * myGlobalPlanManager
Definition: simManager.h:659
Instances of DtVrfParameterDb are the database of DtVrfObjectParameters objects used in the construct...
Definition: vrfParameterDb.h:41
void setTerrainProfileRequestManager(DtTerrainProfileRequestManager *)
Definition: simManager.h:745
DtVrfDatabaseLoggerInterface * myDatabaseLogger
Definition: simManager.h:687
hitZoneDamageParamsInterface.h
Definition: hitZoneDamageParamsManagerInterface.h:23
DtVrfMessageInterface * myMessageInterface
out message interface
Definition: simManager.h:646
void setResourceMonitor(DtResourceMonitor *)
Definition: simManager.h:735
DtReaderWriter::SearchPaths myObjectNavDataPaths
Definition: simManager.h:698
Abstract interface class to the AIS data service. This service provides access to Automatic Identific...
Definition: aisDataServiceInterface.h:28
DtVrfSimSettingsManager * myVrfSimSettingsManager
Definition: simManager.h:643
Manage scripted tasks (primarily Lua tasks) known by VR-Forces.
Definition: scriptedTaskManager.h:76
virtual const DtReaderWriter::SearchPaths & objectNavDataPaths() const
Definition: simManager.h:855
Holds all radio networks (comm models, implemented by DtCommModel) for the current exercise...
Definition: commModelManager.h:26
void(* DtRunUntilCallbackFcn)(void *userData)
Definition: simManager.h:123
The DtEventManager handles the sending and receipt of system events (fire, detonate, command, etc). It provides a thread-safe way for the sim engine to send and receive such events, between both components within this sim engine and other remote applications.
Definition: eventManager.h:33
DtSpawnSinkManager * mySpawnSinkManager
Definition: simManager.h:677
DtU32 myScenarioCapabilities
Definition: simManager.h:702
Options for the configuring the sim.
Definition: vrfSimOptionsInterface.h:20
Manages all of the spawn points, sink points, and spawn templates in the current scenario.
Definition: spawnSinkManager.h:24
The manager for SimInternal messages on a single simulation engine. This class manages the passing of...
Definition: simInternalCommunicationManager.h:28
DtHitZoneDamageParamsManagerInterface * myHitZoneDamageParamsManager
Definition: simManager.h:656
DtEnumDictionary * myEnumDictionary
Definition: simManager.h:704
The DtEngagementZonesManager will keep track of all the engagement zones and their state...
Definition: engagementZonesManager.h:20
static bool theBlockOnAsynchronousOperations
Definition: simManager.h:711
DtManagedObjectListManager * myObjectListManager
Definition: simManager.h:673
DtVrfObjectPlanAdministrator * planAdministrator() const
Definition: simManager.h:755
Definition: radarCoverageMonitor.h:30
DtVrfSimOptionsInterface * mySimOptions
Definition: simManager.h:631
DtVrfCallbackQueue * myParallelQueue
Definition: simManager.h:675
Definition: terrainProfileRequestManager.h:31
DtDetonationServiceInterface * myDetonationManager
Definition: simManager.h:655
double myDT
Definition: simManager.h:632
Simple asynchronous callback queue.
Definition: vrfCallbackQueue.h:31
DtSimInterfaceMessage is used to send a message to the front end or the back end. It derives from a s...
Definition: simInterfaceMessage.h:22
DtVrfNavAreaManager * myVrfNavAreaManager
Definition: simManager.h:676
DtSimCommandDistributor * mySimCommandDistributor
Definition: simManager.h:678
virtual DtOrbatManager * orbatManager()
Definition: simManager.h:805
This class handles all requests as they pertain to viewing or modifying the ORBAT.
Definition: orbatManager.h:30
The DtHazardAreaManager will keep track of all hazard area objects and their state. Hazard areas are predefined as part of this class. Call the add/remove methods to add or remove areas to watch.
Definition: hazardAreaManager.h:22
const DtVrfParameterDb * myObjectParametersDB
Definition: simManager.h:681
virtual void setObjectListManager(DtManagedObjectListManager *)
objectListManager() gives a pointer to the manager of object lists
Definition: simManager.h:810
DtEngagementZonesManager * myEngagementZonesManager
Definition: simManager.h:662
DtSimTerrainRequestManager * mySimTerrainRequestManager
Definition: simManager.h:653
The DtFireManager class exists to centralize the process of sending and receiving of fire interaction...
Definition: fireManager.h:43
The base class for database loggers. A database logger is responsible for logging database events int...
Definition: vrfDatabaseLoggerInterface.h:29
The synchronization matrix manager maintains the list of synchronization matrices. These are locally simulated objects that manage a list of phases where during each phase, scenario entities can be assigned with plans.
Definition: syncMatrixManager.h:40
virtual DtManagedObjectListManager * objectListManager() const
Definition: simManager.h:815
DtFrameRateMonitor * myFrameRateMonitor
Definition: simManager.h:642
This class keeps track of which forces are hostile to which other forces in the simulation. It maintains state for each force type, and which other forces types are considered hostile by that force. It can be queried for this data any time during the simulation. Supports force enumerations from 0 to 255.
Definition: hostilityManager.h:34
Debug Draw Manager (back end) that receive (DIS/HLA) messages from a VRF GUI and then connect to the ...
Definition: debugDrawManager.h:39
DtStealthCommandsManager * myStealthCommandsManager
Definition: simManager.h:660
DtScriptedTaskManager * myScriptedTaskManager
Definition: simManager.h:667
This class represents a collection of object consoles that will be used to manage streams for individ...
Definition: objectConsoleManager.h:31
virtual void setObjectConsoleManager(DtObjectConsoleManager *)
The object console manager.
Definition: simManager.h:785
tbb::spin_mutex myMutex
Definition: simManager.h:707
DtOrbatManager * myOrbatManager
Definition: simManager.h:672
DtNoArgumentCallbackList myTickList
The simulation back-end's clock. Note that this clock is different from the clock associated with the...
Definition: simManager.h:640
double mySimTime
Definition: simManager.h:708
virtual const DtObjectConsoleManager * objectConsoleManager() const
The object console manager.
Definition: simManager.h:790
Manages loading and destruction of the geometric models for objects. Will reference the object parame...
Definition: objectGeometricModelsManager.h:34
DtScenarioExtrasMgr * myScenarioExtrasMgr
Definition: simManager.h:663
DtCommunicationManager * myCommunicationManager
Definition: simManager.h:679
Abstract interface class to the ADSB data service. This service provides access to Automatic Dependen...
Definition: adsbDataServiceInterface.h:121
double myRunUntilTime
Definition: simManager.h:697
The scenario event manager will keep track of all scenario event objects and their state...
Definition: scenarioEventManager.h:36
DtCommModelManager * myCommModelManager
Definition: simManager.h:652
The DtPhysicalWorld is the primary interface to and manager of all of the "physical" aspects of the s...
Definition: physicalWorld.h:114
DtSimInternalCommunicationManager * mySimInternalCommunicationManager
Definition: simManager.h:683
DtSyncMatrixManager * mySyncMatrixManager
Definition: simManager.h:684
DtEmbeddedEntityInfoManager is the central point for information about embedded entities and their ca...
Definition: embeddedEntityInfoManager.h:36
The DtVrfNavAreaManager manages all of the nav areas currently created in the sim.
Definition: vrfNavAreaManager.h:65
The DtCommunicationManager class is a convenience class that will create both the DtNetworkInterfaceM...
Definition: communicationManager.h:54
DtNoArgumentCallbackList myPostTickList
Definition: simManager.h:641
std::atomic< int > myNextEventNumber
Definition: simManager.h:709
virtual void setObjectNavDataPaths(const DtReaderWriter::SearchPaths &)
Definition: simManager.h:860
Contains data describing the available attributes and animations for each DI-Guy character type...
Definition: diGuyCharacterDataManager.h:33
virtual void setObjectModelsManager(DtObjectGeometricModelsManager *)
Definition: simManager.h:825
This class works just as DtCalllbackTable, but manages callbacks that have no arguments, and therefore don't fit in the template defined by DtCallbackList.
Definition: noArgumentCallbackList.h:151
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
DtIntelCollectionAreaManager * myIntelCollectionAreaManager
Definition: simManager.h:670
DtScenarioEventManager * myScenarioEventManager
Definition: simManager.h:668
DtScriptedObjectsMovementManager * myScriptedObjectsMovementManager
Definition: simManager.h:671
DtAisDataServiceInterface * myAisDataManager
Definition: simManager.h:685
DtDetonationPdu DtDetonationInteraction
Definition: DistributedSimulationDriver3A.h:14
DtSimObjectManager * mySimObjectManager
Definition: simManager.h:644
void(* DtSimTickFunction)(void *userData)
Function signature for tick functions registered with the DtSimManager.
Definition: simManager.h:122
DtVrfSimSettingsManager is a subclass of DtVrfSettingsManager. Please see the documentation on that c...
Definition: vrfSimSettingsManager.h:33
The base class for all messages to/from a specific DtVrfObject. Various subclasses of this class will...
Definition: vrfObjectMessage.h:30
virtual DtVrfDatabaseLoggerInterface * databaseLogger()
The interface to the VRF database logger.
Definition: simManager.h:850
Contains the DtInterfaceMessageExecutive class declaration.
Definition: interfaceMessageExecutive.h:20
DtUUID myScenarioRunId
Definition: simManager.h:700
DtCommunicationManager * communicationManager() const
Communication manager accessor.
Definition: simManager.h:770
DtNoArgumentCallbackList mySimulationRunUntilCallbackList
Definition: simManager.h:696
DtPhysicalWorld * myPhysicalWorld
Objects we hold pointers onto for others.
Definition: simManager.h:651
The top level IM GUI interface for a single thread of IM GUI rendering.
Definition: simImguiThread.h:20
The intel collection area manager will keep track of all Intel Collection area objects and their stat...
Definition: intelCollectionAreaManager.h:20
The DtVrfObjectPlanAdministrator performs plan-related tasks that must be done in a centralized manne...
Definition: vrfObjectPlanAdministrator.h:44
virtual void setSimInternalCommunicationManager(DtSimInternalCommunicationManager *)
simInternalCommunicationManager() gives pointer to the internal communication manager ...
Definition: simManager.h:840
bool myRejectMismatchedScenarioMessages
Definition: simManager.h:701
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:97
This class is the central access point for all current-frame state of all objects in the simulation i...
Definition: simObjectManager.h:31
virtual const DtVrfParameterDb * objectParametersDB() const
The object parameters database.
Definition: simManager.h:780
void setPlanAdministrator(DtVrfObjectPlanAdministrator *entityManager)
Definition: simManager.h:750
DtRadarCoverageMonitor * myRadarCoverageMonitor
Definition: simManager.h:665
Responsible for maintaining and executing stealth commands. The stealth commands are of the format (i...
Definition: stealthCommandsManager.h:35
DtDiGuyCharacterDataManager * myDiGuyCharacterManager
Definition: simManager.h:648
Note that this class is not thread safe. Only call from the main thread.
Definition: frameRateMonitor.h:29
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
double simTimeScale() const
Definition: simManager.h:248
virtual void setObjectParametersDB(const DtVrfParameterDb *)
The object parameters database.
Definition: simManager.h:775
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:139
DtAdsbDataServiceInterface * myAdsbDataManager
Definition: simManager.h:686
virtual DtObjectGeometricModelsManager * objectModelsManager()
Definition: simManager.h:830
Service which provides managed lists of simulation objects that are filtered based on a given predica...
Definition: managedObjectListManager.h:22
Definition: simInterfaceContent.h:45
DtVrfObjectPlanAdministrator * myPlanAdministrator
Definition: simManager.h:647
DtRadarCoverageMonitor * radarCoverageMonitor()
Get/set radarCoverage monitor.
Definition: simManager.h:725
DtHazardAreaManager * myHazardAreaManager
Definition: simManager.h:669
void setRadarCoverageMonitor(DtRadarCoverageMonitor *)
Definition: simManager.h:740
The global plan manager maintains the list of "Global Plans." These are plans that are not specific t...
Definition: globalPlanManager.h:53
DtFilename myEnumsFileDirectory
Definition: simManager.h:705
void setDiGuyCharacterManager(DtDiGuyCharacterDataManager *entityManager)
Definition: simManager.h:760
DtSimulationServices * mySimulationServices
Definition: simManager.h:689
#define VRF4API_METHOD
Include this header file to allow for the definition/usage of the ability to mark something as deprec...
Definition: vrf4XAPI.h:23
Abstract interface class to the detonation service. This service provides information about detonatio...
Definition: detonationServiceInterface.h:34
DtResourceMonitor * myResourceMonitor
Definition: simManager.h:664
DtTerrainProfileRequestManager * myTerrainProfileRequestManager
Definition: simManager.h:666
DtResourceMonitor * resourceMonitor()
Get/set resource monitor.
Definition: simManager.h:720
DtAmmunitionManager * myAmmunitionManager
Definition: simManager.h:657
Contains the DtSimCommandDistributor class declaration.
Definition: simCommandDistributor.h:24
DtEmbeddedEntityInfoManager * myEmbeddedEntityInfoManager
Definition: simManager.h:654
#define DT_DLL_vrfcore
This file is used to determine how to build.
Definition: vrfcoreDefines.h:25
The scripted objects movement manager contains a list of all scripted movement objects that can be us...
Definition: scriptedObjectsMovementManager.h:22
DtCallbackList< DtSimMessage * >::DtCallbackFunctionType DtMessageCallbackFcn
Message callback function signature.
Definition: messageExecutive.h:21
virtual void setOrbatManager(DtOrbatManager *)
orbatManager() provides access to all the orbat items in the system
Definition: simManager.h:800
DtDebugDrawManager * myDebugDrawManager
Definition: simManager.h:680
Definition: vrfMessageInterface.h:39
DtHostilityManager * myHostilityManager
Definition: simManager.h:661
DtScheduler * myScheduler
Objects we create.
Definition: simManager.h:635
This class holds the state data that represents each simulation object in the system.
Definition: stateDataManager.h:76