VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
scenarioManager.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
10 #pragma once
11 
14 #include <vrfutil/backend.h>
15 #include <vlpi/simulationAddress.h>
16 #include <vlutil/vlUtil.h>
17 #include <map>
18 #include <string>
19 
20 #include <boost/signals2.hpp>
21 
29 
30 namespace makVrfEvents
31 {
32  class DtEventManager;
33 }
34 
35 namespace makVrf
36 {
37  class DtStateDataManager;
38 }
39 
41 {
42 public:
43 
46 
48  virtual ~DtScenarioManager();
49 
51  DtVrfMessageInterface* messageInterface() const;
52  DtRemoteEnvironmentController* remoteEnvironmentController() const;
53  DtVrfBackendListener* listener() const;
54  DtVrfObjectMessageExecutive* objectMessageExecutive() const;
55  makVrfEvents::DtEventManager* eventManager() const;
56  DtRadioMessageListener* radioMessageListener() const;
57  makVrf::DtStateDataManager* stateDataManager() const;
58  DtCommunicationManager* communicationManager() const;
59 
60  virtual double dateAndTimeOfDay() const;
61  virtual double simTime() const;
62 
65  virtual DtSimulationAddress preferredBackendAddress() const;
66 
67  bool isValid() const
68  {
69  return (myRemoteControl != nullptr);
70  }
71 
73  {
74  static DtScenarioManager theNullManager(nullptr);
75 
76  return theNullManager;
77  }
78 
82  virtual unsigned int generateRequestId() const;
83 
84  boost::signals2::signal<void (DtSimulationStatus)> signal_scenarioStatusChanged;
85 
86 protected:
88  static void ScenarioStatusChanged(DtSimulationStatus status, void*);
89  virtual void processScenarioStatus(DtSimulationStatus);
90 
91 protected:
92  DtVrfRemoteController* myRemoteControl = nullptr;
93 };
Definition: scenarioManager.h:40
DtSimulationStatus
Definition: backend.h:27
Definition: vrfSingletonRoot.h:17
#define DT_DLL_vrfcontrol
This file is used to determine how to build.
Definition: vrfcontrolDefines.h:28
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
static DtScenarioManager & NullManager()
Definition: scenarioManager.h:72
Instances of DtVrfBackendListener are used to track the status of VRF applications. The applications are tracked in a list which is keyed by their message address. For each entry, isActive is true if the application sends out a status message and isLoaded is true if the application has completed the processing of a load scenario message.
Definition: vrfBackendListener.h:86
Callback manager for DtVrfObjectMessage receipt. Callbacks can be registered on various attributes of...
Definition: vrfObjectMessageExecutive.h:26
The main class for the remote control interface to VR-Forces. Instantiating this class allows the sen...
Definition: vrfRemoteController.h:214
The DtCommunicationManager class is a convenience class that will create both the DtNetworkInterfaceM...
Definition: communicationManager.h:54
boost::signals2::signal< void(DtSimulationStatus)> signal_scenarioStatusChanged
Definition: scenarioManager.h:84
Object which registers callbacks with a DtCommunicationManager to monitor for VR-Forces radio message...
Definition: radioMessageListener.h:29
bool isValid() const
Definition: scenarioManager.h:67
DtRemoteEnvironmentController; remotely controls and reflects the weather state of VR-Forces...
Definition: remoteEnvironmentController.h:48
Definition: vrfMessageInterface.h:39
This class holds the state data that represents each simulation object in the system.
Definition: stateDataManager.h:76

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)