8 #include <vlpi/simulationAddress.h>
9 #include <vlutil/vlTime.h>
10 #include <boost/signals2.hpp>
11 #include <boost/function.hpp>
12 #include <tbb/atomic.h>
14 namespace makVrfEvents
22 class DtStateDataManager;
38 double preAdvanceFrameTime;
73 return myNetworkInterfaceManager;
76 virtual void setSimulationAddress(
const DtSimulationAddress&);
77 const DtSimulationAddress& simulationAddress()
const;
78 const DtSimulationAddress&
applicationId()
const {
return simulationAddress(); };
84 return myEventManager;
90 return myParameterDatabase;
94 virtual void setNumCallbackThreads(
unsigned);
97 virtual bool typeIsPublishable(
const DtEntityType&)
const;
122 virtual void removeManager(
const char*);
134 virtual void setUsePerfCounter(
bool);
141 virtual void setSessionId(
int);
149 virtual double elapsedRealTime()
const;
155 virtual void pause();
158 virtual void rewindScenario();
161 virtual void resetSimulation();
164 virtual void setSimTime(
double);
167 virtual void setFrameRateMode(
const DtString&
mode,
double deltaTime,
bool manageTime =
false);
170 virtual void setTimeMultiplier(
double);
173 virtual void setExerciseStartTime(
double);
175 virtual bool isPaused()
const;
176 virtual double approximateElapsedRealTime()
const;
177 virtual double absRealTime()
const;
178 virtual double timeMultiplier()
const;
179 virtual double exerciseStartTime()
const;
180 virtual bool isRunToCompleteFrameMode()
const;
181 virtual void setSimTimeProviderFunction(SimTimeProvideFcn f);
192 return myExerciseClock;
201 virtual bool isConnectionless()
const;
204 virtual void removeAndDeleteAll();
208 virtual void reserve(
unsigned int);
214 virtual bool selfReflecting()
const;
218 virtual void setSelfReflecting(
bool);
220 virtual void beginBulkCreate();
221 virtual void endBulkCreate();
224 return myStateDataManager;
231 virtual bool rediscoverObjects();
static DtCommunicationManagerCreatorFcn theCommunicationManagerCreatorFcn
Definition: communicationManager.h:267
Instances of DtVrfParameterDb are the database of DtVrfObjectParameters objects used in the construct...
Definition: vrfParameterDb.h:40
boost::function< double(double &dt)> SimTimeProvideFcn
Definition: communicationManager.h:54
Definition: scenario.h:52
int sessionId() const
Definition: communicationManager.h:142
const DtSimulationAddress & applicationId() const
Definition: communicationManager.h:78
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
boost::signals2::signal< void(double simTime, double dT)> signal_beginFrame
Signal sent right before beginFrame is returned.
Definition: communicationManager.h:248
bool myOwnsStateDataManager
Definition: communicationManager.h:272
DtExerciseClock * clock() const
Definition: communicationManager.h:190
double mySimTime
Definition: communicationManager.h:274
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque
boost::signals2::signal< void()> signal_aboutToAdvanceFrame
Sent before the state data manager advances its frame.
Definition: communicationManager.h:235
double myLastDt
Definition: communicationManager.h:275
DtCommunicationManager *(* DtCommunicationManagerCreatorFcn)(const DtSimulationAddress &, makVrf::DtStateDataManager *, int)
Definition: communicationManager.h:33
boost::signals2::signal< void(DtNetworkManagerInterface *)> signal_interfaceAdded
Signal sent when an interface is added.
Definition: communicationManager.h:251
makVrfEvents::DtEventManager * myEventManager
Definition: communicationManager.h:266
DtNetworkManagerInterface is the base class which all network interfaces must be derived from...
Definition: networkManagerInterface.h:42
Definition: coordSystem.h:54
DtVrfParameterDb * myParameterDatabase
Definition: communicationManager.h:278
boost::signals2::signal< void()> signal_preEventManagerTick
Signal sent before the signal_beginFrame and before the event manager tick, but after state data mana...
Definition: communicationManager.h:245
boost::signals2::signal< void()> signal_frameAdvanced
Can be called by outside holders of this class if the frame cannot be advanced, however, other classes connect to this to be signaled for a post communication advance event. Will also be called from advanceFrame.
Definition: communicationManager.h:242
bool inFame() const
Definition: communicationManager.h:195
The DtCommunicationManager class is a convenience class that will create both the DtNetworkInterfaceM...
Definition: communicationManager.h:51
DtVrfParameterDb * parameterDatabase() const
Definition: communicationManager.h:88
DtSimulationAddress mySimulationAddress
Definition: communicationManager.h:268
boost::signals2::signal< void(DtNetworkManagerInterface *)> signal_interfaceRemoved
Signal sent when an interface is removed.
Definition: communicationManager.h:254
makVrf::DtStateDataManager * stateDataManager() const
Definition: communicationManager.h:222
Definition: asyncJobServer.h:39
makVrfEvents::DtEventManager * eventManager()
Definition: communicationManager.h:82
int mySessionId
Definition: communicationManager.h:273
tbb::atomic< int > myNextEventNumber
Definition: communicationManager.h:279
virtual double simTime() const
Definition: communicationManager.h:183
The DtNetworkInterfaceManager manages all network interfaces utilized by the sim engine. Often there is only one, but it is possible for there to be multiple. Each network interface is an instance of a subclass of DtNetworkManagerInterface. As state data is created or removed, the DtNetworkInterfaceManager will notify each of its network interfaces, so that they may create object network interfaces to output required state data to the network.
Definition: networkInterfaceManager.h:45
DtNetworkInterfaceManager * myNetworkInterfaceManager
Definition: communicationManager.h:264
const char int mode
Definition: ioapi.h:38
SimTimeProvideFcn mySimTimeProviderFunction
Definition: communicationManager.h:276
DtNetworkInterfaceManager * networkInterfaceManager()
Definition: communicationManager.h:71
int myInFrame
Definition: communicationManager.h:277
boost::signals2::signal< void(makVrf::DtStateDataManager *)> signal_stateDataManagerChanged
Sent if a network manager is assigned with a different state data manager in it.
Definition: communicationManager.h:238
#define DT_DLL_vrfMsgTransport
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfCommunicationManagerDefines.h:26
makVrf::DtStateDataManager * myStateDataManager
Definition: communicationManager.h:265
Description: The Exercise Clock keeps track of current simulated time. When 'ticked', it advances simulation time based on elapsed real time since the last time it was ticked and a time-multiplier that allows the exercise clock to run faster or slower than real-time. The exercise clock also supports a pause/resume capability.
Definition: exerciseClock.h:27
This class holds the state data that represents each simulation object in the system.
Definition: stateDataManager.h:73
DtExerciseClock * myExerciseClock
Backup for simulation time (absRealTime) if no network manager.
Definition: communicationManager.h:271