VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes
makVrf::DtVrfConnectionHelper Class Reference

Helper code for connectors. Does not exist in it's own project but is included by all projects that use it.

Public Types

typedef boost::function< void(DtVrfConnectionHelper *)> RemoteControllerInitialization
 

Public Member Functions

 DtVrfConnectionHelper (makVrv::DtDe &, bool inThread=true)
 
virtual ~DtVrfConnectionHelper ()
 
virtual void beginFrame ()
 
virtual void advanceFrame ()
 
virtual bool onStop ()
 
virtual bool waitingToAddObjects () const
 
virtual void createStateDataManager (Legion::SimulationDatabase *db=0)
 
virtual void init (const DtSimulationAddress &, makVrv::DtBaseConnection *, int sessionId=-1, int fileReceiveTransferPort=9000, Legion::SimulationDatabase *db=0, RemoteControllerInitialization remoteControllerInitializationFunction=RemoteControllerInitialization(), bool disableRemoteDiscovery=false)
 
virtual void setupQueuedConenctions (makVrv::DtSharedSettingsManager &manager)
 
virtual void receivedNetworkMessage (DtNetworkMessageInterface *iface)
 
virtual void registerCommentInteractionCallback (DtCommentCallbackFcn, void *)
 
virtual void unregisterCommentInteractionCallback (DtCommentCallbackFcn, void *)
 
virtual void queueConnectionFunction (const boost::function< void()> &function)
 
virtual void queuePostAdvanceFrameConnectionFunction (const boost::function< void()> &function)
 
virtual void rollbackToSnapshot (double)
 
virtual void setCoordinateSystem (const makVrv::DtCoordinateSystem &)
 
virtual void loadScenario (const DtScenarioLoadInformation *, bool deleteMemory=false)
 
virtual void clearSavingCheckpoints ()
 
virtual DtSimulationStatus simulationStatus () const
 
virtual void simulationStatusChanged (DtSimulationStatus)
 
DtVantageToLegionIdMapper * vantageToLegionIdMapper () const
 
makRadio::DtRadioProcessor * radioProcessor () const
 
DtVrfRemoteController * remoteController () const
 
DtCommunicationManager * communicationManager () const
 
Coordinate_System * coordinateSystem () const
 
DtVrfMessageInterface * messageInterface () const
 
DtStateDataManager * stateDataManager () const
 
virtual void addEvent (makVrfEvents::DtEvent *)
 
virtual void eventResponse (const makVrfEvents::DtEvent &)
 
virtual void sendMessageToObject (const DtVrfObjectMessage *m, DtSimulationAddress addr)
 
virtual void sendMessage (const DtSimInterfaceContent *m, DtSimulationAddress addr)
 
virtual void importScenarioDescriptionFile (std::string file, DtSimulationAddress address, std::string format, std::map< std::string, std::string > importData)
 
virtual void exportScenarioDescriptionFile (std::string file, DtSimulationAddress address, std::string format, std::map< std::string, std::string > importData)
 
virtual void createGlobalEnvironment (bool)
 
virtual void createEnvironmentalObject (DtSimulationAddress addr, DtSharedNetworkSignaler::EnvironmentalSignalCreationData sigData)
 
virtual void newScenario (const DtScenario *, time_t startTimeOfDay=12 *3600, const DtChangeWeatherCommand &initialCondition=DtChangeWeatherCommand())
 
virtual void closeScenario (DtFilename, bool forceCloseAll=false, bool willLoadCheckpointAfterClose=false)
 
virtual void getMessageFilterStatus (std::map< std::string, bool > &statusMap) const
 
virtual void setMessageFilterStatus (const std::map< std::string, bool > &statusMap)
 
virtual void getMessageProcessorStatus (std::map< std::string, bool > &statusMap) const
 
virtual void setMessageProcessorStatus (const std::map< std::string, bool > &statusMap)
 
virtual void addSetCreatorFcn (const DtSetMessageType &, DtSetDataRequestCreatorFcn)
 
virtual void addTaskCreatorFcn (const DtSimTaskMessageType &, DtSimTaskCreatorFcn)
 
virtual void addInterfaceContentCreatorFcn (int, DtInterfaceContentCreatorFcn)
 
virtual void addObjectMessageCreatorFcn (int, DtVrfObjectMessageCreatorFcn)
 
virtual void addReportCreatorFcn (const DtSimReportMessageType &, DtSimReportCreatorFcn)
 
virtual void addAdminContentCreatorFcn (const DtAdminContentMessageType &, DtAdminContentCreatorFcn)
 
virtual void addSimulationCommandCreatorFcn (const DtSimCommandMessageType &, DtSimCommandCreatorFcn)
 
virtual void addConditionCreatorFcn (std::string, int, DtCondExprCreatorFcn)
 
virtual void setTimeoutInterval (int i)
 
virtual void registerSimMessageCallbackFor (int t, bool reg)
 
virtual void registerSimReportMessageCallbackFor (const DtSimReportMessageType &s, bool reg)
 
virtual void registerSimTaskMessageCallbackFor (const DtSimTaskMessageType &s, bool reg)
 
virtual void registerSetMessageCallbackFor (const DtSetMessageType &s, bool reg)
 
virtual void registerAdminMessageCallbackFor (const DtAdminContentMessageType &t, bool reg)
 
virtual void registerEventManagerEventCallbackFor (int, bool reg)
 
int proposedNumberOfObjectsToBeLoaded () const
 
bool signalOnParameterDatabaseReinitializeOnly () const
 
DtMtlParameterDb * parameterDatabase () const
 
virtual void initializeParameterDatabase ()
 
virtual void setSignalOnParameterDatabaseReinitializeOnly (bool)
 

Public Attributes

boost::signals2::signal< void(bool)> signal_parameterDatabaseInitialized
 
boost::signals2::signal< void(DtSimulationStatus)> signal_simulationStatusChanged
 
boost::signals2::signal< void()> signal_scenarioLoaded
 
boost::signals2::signal< void(DtScenario &)> signal_scenarioAboutToBeSaved
 
boost::signals2::signal< void(DtSaveResult,
const DtString &)> 
signal_scenarioSaved
 

Protected Types

typedef std::vector< std::pair
< DtVrfObjectConsoleMessageCallbackFcn,
void * > > 
DtCommentInteractionCallbackList
 
typedef std::vector
< DtVrfConnectionHelperMessageCallbackHandler * > 
EventHandlerCallbacks
 
typedef std::map
< makVrfEvents::DtEvent::EventType,
EventHandlerCallbacks > 
EventHandlerCallbacksMap
 
typedef
makVrv::DtLockedBufferedQueue
< boost::function< void()> > 
FunctionCallQueue
 
typedef std::vector
< boost::function< void()> > 
FunctionCallList
 
typedef std::map< double,
std::pair< DtScenario, int > > 
CheckpointsToSave
 
typedef std::map< int,
std::pair< int,
std::shared_ptr
< boost::signals2::scoped_connection > > > 
EventManagerEventCallbacks
 

Protected Member Functions

virtual void processNetworkMessage (DtNetworkMessageInterface *iface)
 
virtual void slot_onSaveScenario (const DtScenario *, DtPreserveMappingsFcn fcn=0, void *userData=0, bool saveInZipFile=false, bool queueSave=false, int putIntoPlayMode=0)
 
virtual void slot_onSaveCheckpoints (std::vector< DtScenario * >, DtFilename)
 
virtual void slot_onClearSavingCheckpoints ()
 
virtual void slot_onLoadScenario (const DtScenarioLoadInformation &)
 
virtual void slot_onRollbackToSnapshot (double)
 
virtual void slot_registerCommentInteraction (bool)
 
virtual void slot_registerInfluenceInteraction (bool)
 
virtual void processInfluenceInteraction (const makVrfEvents::DtInfluenceEvent *inter)
 
virtual void processCommentInteraction (const makVrfEvents::DtCommentEvent *inter)
 
virtual void regsiterInfluenceIteractionCallback (DtInfluenceEventCb, void *)
 
virtual void unregsiterInfluenceIteractionCallback (DtInfluenceEventCb, void *)
 
virtual Coordinate_System * createVrfCoordinateSystem (const makVrv::DtCoordinateSystem &coodSysIn)
 
virtual void processScenarioAboutToBeSaved (DtScenario &) const
 
virtual void saveScenario (const DtScenario *, DtPreserveMappingsFcn fcn=0, void *userData=0, bool deleteMemory=false, bool saveInZipFile=false, bool queueSave=false, int putIntoPlayMode=0)
 
virtual void saveCheckpoints (const std::vector< DtScenario * > &, const DtFilename &baseName)
 
virtual void saveNextCheckpoint ()
 
virtual void slot_quitBackend (DtSimulationAddress)
 
virtual void symbolDecorationsChanged ()
 
virtual void setupParameterDatabase (std::vector< DtFilename > searchPaths)
 
virtual void setupEnumerations (const std::vector< DtSimulationModelSet * > &sets)
 
virtual void createGlobalDynamicTerrain (bool)
 
virtual void slot_modelSetLoaded (std::vector< DtFilename > searchPaths)
 
virtual void setupDirectConnections ()
 
virtual void disconnectConnections ()
 
virtual void sendScenarioLoadSuccessMessage ()
 
virtual void sendScenarioLoadErrorMessage (DtString error)
 
virtual void processScenarioSaved (DtSaveResult, const DtString &)
 
virtual void processScenarioCheckpointed (DtSaveResult result, double)
 
virtual void runFunctionQueue ()
 
virtual void runPostAdvanceFrameFunctionQueue ()
 
virtual void processSimMessage (DtSimMessage *msg)
 
virtual void processRadioMessage (const DtVrfObjectMessage *msg)
 
virtual void registerExistingMessages ()
 
template<typename _Class , typename _CallbackFunction >
DtVrfConnectionHelperMessageCallbackHandler * addEventManagerCallback (makVrfEvents::DtEvent::EventType et, _CallbackFunction fcn, void *usr)
 
template<typename _Class , typename _CallbackFunction >
void removeEventManagerCallback (makVrfEvents::DtEvent::EventType et, _CallbackFunction fcn, void *usr)
 
virtual void remoteControllerInitialized ()
 
virtual void processSessionStatusChanged (const DtSessionUpdateInformation &)
 

Static Protected Member Functions

static void influenceInteractionCallback (const makVrfEvents::DtInfluenceEvent *inter, void *usr)
 
static void commentInteractionCallback (const makVrfEvents::DtCommentEvent *inter, void *usr)
 
static void scenarioAboutToBeSaved (DtScenario &, void *)
 
static void scenarioSavedCallback (DtSaveResult result, const DtString &error, void *usr)
 
static void scenarioCheckpointed (DtSaveResult result, double, void *)
 
static void simMessageCallback (DtSimMessage *msg, void *usr)
 
static void radioMessageCallback (const DtVrfObjectMessage *msg, void *usr)
 
static void sessionStatusChangedCallback (const DtSessionUpdateInformation &addr, void *)
 

Protected Attributes

makVrv::DtDe & myDe
 
makVrv::DtBaseConnection * myConnection
 
makVrv::DtSignalConnectionManager myConnections
 
DtNetworkMessageInterfaceHandlerAgent * myNetworkMessageInterfaceHandlerAgent
 
bool myInThreadFlag
 
EventHandlerCallbacksMap myEventHandlerCallbacksMap
 
FunctionCallQueue myConnectionThreadFunctions
 
FunctionCallQueue myAdvancedFrameConnectionThreadFunctions
 
DtVrfRemoteController * myRemoteController
 
DtStateDataManager * myStateDataManager
 
DtVrfCommunicationManager * myCommunicationManager
 
Coordinate_System * myCoordinateSystem
 
int mySessionId
 
int myFileTransporterReceivePort
 
DtAddressMap * myLastAddressMap
 
DtBackendMap * myLastBackendMap
 
CheckpointsToSave myCheckpointsToSave
 
CheckpointsToSave myCheckpointsSaving
 
DtVrfMessageInterface * myVrfMessageInterface
 
DtSimDataProcessorManager * mySimDataProcessorManager
 
makRadio::DtRadioProcessor * myRadioProcessor
 
bool myStopped
 
DtMtlParameterDb * myParameterDatabase
 
double myParameterDatabaseTimerStart
 
DtSimulationStatus mySimulationStatus
 
DtVrfBackendInterceptor * myBackEndInterceptor
 
DtVantageToLegionIdMapper * myVantageToLegionIdMapper
 
std::set< int > mySimMessageCallbacks
 
std::set
< DtAdminContentMessageType > 
myAdminMessageCallbacks
 
EventManagerEventCallbacks myEventManagerEventCallbacks
 
std::set< DtSimReportMessageType > myReportMessageCallbacks
 
std::set< DtSimTaskMessageType > myTaskMessageCallbacks
 
std::set< DtSetMessageType > mySetMessageCallbacks
 
std::map< DtSetMessageType,
DtSetDataRequestCreatorFcn > 
mySetCreator
 
std::map< DtSimTaskMessageType,
DtSimTaskCreatorFcn > 
myTaskCreator
 
std::map< int,
DtInterfaceContentCreatorFcn > 
myInterfaceContentCreator
 
std::map
< DtAdminContentMessageType,
DtAdminContentCreatorFcn > 
myAdminContentCreator
 
std::map
< DtSimCommandMessageType,
DtSimCommandCreatorFcn > 
mySimulationCommandCreator
 
std::map< std::string,
std::pair< int,
DtCondExprCreatorFcn > > 
myConditionCommandCreator
 
std::map< int,
DtVrfObjectMessageCreatorFcn > 
myObjectMessageCreator
 
std::map
< DtSimReportMessageType,
DtSimReportCreatorFcn > 
myReportCreator
 
std::vector< DtFilename > myModelSetSearchPaths
 
bool mySignalOnParameterDatabaseReinitializeOnly
 
DtThreadId myThreadId
 
int myProposedNumberOfObjectsToBeLoaded = 0
 
tbb::spin_mutex myConnectionThreadFunctionsMutex
 
tbb::spin_mutex myAdvancedFrameConnectionThreadFunctionsMutex
 
bool myDisableRemoteDiscovery = false
 

Member Typedef Documentation

typedef std::vector<boost::function<void ()> > makVrf::DtVrfConnectionHelper::FunctionCallList
protected
typedef std::map<double, std::pair<DtScenario, int> > makVrf::DtVrfConnectionHelper::CheckpointsToSave
protected

Checkpoints left to save.

typedef std::map<int, std::pair<int, std::shared_ptr<boost::signals2::scoped_connection> > > makVrf::DtVrfConnectionHelper::EventManagerEventCallbacks
protected

Constructor & Destructor Documentation

makVrf::DtVrfConnectionHelper::DtVrfConnectionHelper ( makVrv::DtDe &  ,
bool  inThread = true 
)

CTOR.

virtual makVrf::DtVrfConnectionHelper::~DtVrfConnectionHelper ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrf::DtVrfConnectionHelper::beginFrame ( )
virtual

Call this to start a frame. Must be done before any work can be done on the network.

virtual void makVrf::DtVrfConnectionHelper::advanceFrame ( )
virtual

Must call to advance frame and copy double buffer information.

virtual bool makVrf::DtVrfConnectionHelper::onStop ( )
virtual
virtual bool makVrf::DtVrfConnectionHelper::waitingToAddObjects ( ) const
virtual

Returns true if the network manager is waiting to add objects.

virtual void makVrf::DtVrfConnectionHelper::createStateDataManager ( Legion::SimulationDatabase *  db = 0)
virtual

Call this before init() to create the state data manager. This can be done when the state data manager needs to be created before the connection but also used in this class. If this is not called before init() it will be called during init()

virtual void makVrf::DtVrfConnectionHelper::init ( const DtSimulationAddress &  ,
makVrv::DtBaseConnection *  ,
int  sessionId = -1,
int  fileReceiveTransferPort = 9000,
Legion::SimulationDatabase *  db = 0,
RemoteControllerInitialization  remoteControllerInitializationFunction = RemoteControllerInitialization(),
bool  disableRemoteDiscovery = false 
)
virtual
virtual void makVrf::DtVrfConnectionHelper::setupQueuedConenctions ( makVrv::DtSharedSettingsManager &  manager)
virtual

This method must be called in the setup of the exercise connection to be able to queue messages to the connection thread.

virtual void makVrf::DtVrfConnectionHelper::receivedNetworkMessage ( DtNetworkMessageInterface *  iface)
virtual

Called when a message wants to be posted from the network thread to the gui thread. Message is cloned and then must be freed by the gui thread. Posted to the queue to process in a tick.

virtual void makVrf::DtVrfConnectionHelper::registerCommentInteractionCallback ( DtCommentCallbackFcn  ,
void *   
)
virtual

Called to register for comment interactions.

virtual void makVrf::DtVrfConnectionHelper::unregisterCommentInteractionCallback ( DtCommentCallbackFcn  ,
void *   
)
virtual

Called to unregister for comment interactions.

virtual void makVrf::DtVrfConnectionHelper::queueConnectionFunction ( const boost::function< void()> &  function)
virtual

Put a function in the sim function queue, for threadsafe calling.

virtual void makVrf::DtVrfConnectionHelper::queuePostAdvanceFrameConnectionFunction ( const boost::function< void()> &  function)
virtual

Put a function in the sim function queue, for threadsafe calling.

virtual void makVrf::DtVrfConnectionHelper::rollbackToSnapshot ( double  )
virtual

Called to rollback to the given snapshot.

virtual void makVrf::DtVrfConnectionHelper::setCoordinateSystem ( const makVrv::DtCoordinateSystem &  )
virtual
virtual void makVrf::DtVrfConnectionHelper::loadScenario ( const DtScenarioLoadInformation *  ,
bool  deleteMemory = false 
)
virtual

Called when a scenario needs to be loaded. Passed to remove controller.

virtual void makVrf::DtVrfConnectionHelper::clearSavingCheckpoints ( )
virtual

Clears out the checkpoints to save. If there is one currently being saved that will not effect it.

virtual DtSimulationStatus makVrf::DtVrfConnectionHelper::simulationStatus ( ) const
virtual

The current status of the simulation.

virtual void makVrf::DtVrfConnectionHelper::simulationStatusChanged ( DtSimulationStatus  )
virtual

Emits simulation status changed signal.

DtVantageToLegionIdMapper* makVrf::DtVrfConnectionHelper::vantageToLegionIdMapper ( ) const
inline
makRadio::DtRadioProcessor* makVrf::DtVrfConnectionHelper::radioProcessor ( ) const
inline
DtVrfRemoteController* makVrf::DtVrfConnectionHelper::remoteController ( ) const
inline
DtCommunicationManager* makVrf::DtVrfConnectionHelper::communicationManager ( ) const
Coordinate_System* makVrf::DtVrfConnectionHelper::coordinateSystem ( ) const
inline
DtVrfMessageInterface* makVrf::DtVrfConnectionHelper::messageInterface ( ) const
inline
DtStateDataManager* makVrf::DtVrfConnectionHelper::stateDataManager ( ) const
inline
virtual void makVrf::DtVrfConnectionHelper::addEvent ( makVrfEvents::DtEvent *  )
virtual

Will delete supply event memory after adding to event manager.

virtual void makVrf::DtVrfConnectionHelper::eventResponse ( const makVrfEvents::DtEvent &  )
virtual
virtual void makVrf::DtVrfConnectionHelper::sendMessageToObject ( const DtVrfObjectMessage *  m,
DtSimulationAddress  addr 
)
virtual

Called when system wants to send an admin message to object.

virtual void makVrf::DtVrfConnectionHelper::sendMessage ( const DtSimInterfaceContent *  m,
DtSimulationAddress  addr 
)
virtual

Called when system wants to send a message to object. Message passed in will be deleted. Assumed is a clone or a newly creaated message.

virtual void makVrf::DtVrfConnectionHelper::importScenarioDescriptionFile ( std::string  file,
DtSimulationAddress  address,
std::string  format,
std::map< std::string, std::string >  importData 
)
virtual

Called to import a scenario description file via the remote controller.

virtual void makVrf::DtVrfConnectionHelper::exportScenarioDescriptionFile ( std::string  file,
DtSimulationAddress  address,
std::string  format,
std::map< std::string, std::string >  importData 
)
virtual

Called to export a scenario description file via the remote controller.

virtual void makVrf::DtVrfConnectionHelper::createGlobalEnvironment ( bool  )
virtual

Create/destroy global environment (if not already)

virtual void makVrf::DtVrfConnectionHelper::createEnvironmentalObject ( DtSimulationAddress  addr,
DtSharedNetworkSignaler::EnvironmentalSignalCreationData  sigData 
)
virtual

Called when an environmental object needs to be created at the specified geocentric position(s)

virtual void makVrf::DtVrfConnectionHelper::newScenario ( const DtScenario *  ,
time_t  startTimeOfDay = 12 *3600,
const DtChangeWeatherCommand &  initialCondition = DtChangeWeatherCommand() 
)
virtual

Methods to call down to remote controller to do the specified action.

Called when a new scenario needs to be created. Passed to simulation

virtual void makVrf::DtVrfConnectionHelper::closeScenario ( DtFilename  ,
bool  forceCloseAll = false,
bool  willLoadCheckpointAfterClose = false 
)
virtual

Called when a scenario needs to be closed.

virtual void makVrf::DtVrfConnectionHelper::getMessageFilterStatus ( std::map< std::string, bool > &  statusMap) const
virtual

Called when a developer wants to interrogate the status of message filters in DtRadioMessageListener.

virtual void makVrf::DtVrfConnectionHelper::setMessageFilterStatus ( const std::map< std::string, bool > &  statusMap)
virtual

Called when a developer wants to set the status of message filters in DtRadioMessageListener.

virtual void makVrf::DtVrfConnectionHelper::getMessageProcessorStatus ( std::map< std::string, bool > &  statusMap) const
virtual

Called when a developer wants to interrogate the status of message processors in DtRadioMessageListener.

virtual void makVrf::DtVrfConnectionHelper::setMessageProcessorStatus ( const std::map< std::string, bool > &  statusMap)
virtual

Called when a developer wants to set the status of message processors in DtRadioMessageListener.

virtual void makVrf::DtVrfConnectionHelper::addSetCreatorFcn ( const DtSetMessageType &  ,
DtSetDataRequestCreatorFcn   
)
virtual

Called when the system wants to add a set creator to the set factory.

virtual void makVrf::DtVrfConnectionHelper::addTaskCreatorFcn ( const DtSimTaskMessageType &  ,
DtSimTaskCreatorFcn   
)
virtual

Called when the system wants to add a task creator to the set factory.

virtual void makVrf::DtVrfConnectionHelper::addInterfaceContentCreatorFcn ( int  ,
DtInterfaceContentCreatorFcn   
)
virtual

Called when the system wants to add a interface content creator to the set factory.

virtual void makVrf::DtVrfConnectionHelper::addObjectMessageCreatorFcn ( int  ,
DtVrfObjectMessageCreatorFcn   
)
virtual

Called when the system wants to add an object message creator to the set factory.

virtual void makVrf::DtVrfConnectionHelper::addReportCreatorFcn ( const DtSimReportMessageType &  ,
DtSimReportCreatorFcn   
)
virtual

Called when the system wants to add a report creator to the set factory.

virtual void makVrf::DtVrfConnectionHelper::addAdminContentCreatorFcn ( const DtAdminContentMessageType &  ,
DtAdminContentCreatorFcn   
)
virtual

Called when the system wants to add a admin content creator to the set factory.

virtual void makVrf::DtVrfConnectionHelper::addSimulationCommandCreatorFcn ( const DtSimCommandMessageType &  ,
DtSimCommandCreatorFcn   
)
virtual

Called when the system wants to add a sim command creator to the set factory.

virtual void makVrf::DtVrfConnectionHelper::addConditionCreatorFcn ( std::string  ,
int  ,
DtCondExprCreatorFcn   
)
virtual

Called when the system wants to add a condition creator to the set factory.

virtual void makVrf::DtVrfConnectionHelper::setTimeoutInterval ( int  i)
virtual

Called to set the back-end timeout interval.

virtual void makVrf::DtVrfConnectionHelper::registerSimMessageCallbackFor ( int  t,
bool  reg 
)
virtual

Called when developer wants to register (or unregister) a callback for the particular VRF message type.

virtual void makVrf::DtVrfConnectionHelper::registerSimReportMessageCallbackFor ( const DtSimReportMessageType &  s,
bool  reg 
)
virtual

Called when developer wants to register (or unregister) a callback for the particular VRF radio message type (sent from the radioMessageListener)

virtual void makVrf::DtVrfConnectionHelper::registerSimTaskMessageCallbackFor ( const DtSimTaskMessageType &  s,
bool  reg 
)
virtual
virtual void makVrf::DtVrfConnectionHelper::registerSetMessageCallbackFor ( const DtSetMessageType &  s,
bool  reg 
)
virtual
virtual void makVrf::DtVrfConnectionHelper::registerAdminMessageCallbackFor ( const DtAdminContentMessageType &  t,
bool  reg 
)
virtual

Called when developer wants to register (or unregister) a callback for the particular VRF object message type (sent from the radioMessageListener)

virtual void makVrf::DtVrfConnectionHelper::registerEventManagerEventCallbackFor ( int  ,
bool  reg 
)
virtual
int makVrf::DtVrfConnectionHelper::proposedNumberOfObjectsToBeLoaded ( ) const
inline
bool makVrf::DtVrfConnectionHelper::signalOnParameterDatabaseReinitializeOnly ( ) const
inline
DtMtlParameterDb* makVrf::DtVrfConnectionHelper::parameterDatabase ( ) const
inline
virtual void makVrf::DtVrfConnectionHelper::initializeParameterDatabase ( )
virtual
virtual void makVrf::DtVrfConnectionHelper::setSignalOnParameterDatabaseReinitializeOnly ( bool  )
virtual
virtual void makVrf::DtVrfConnectionHelper::processNetworkMessage ( DtNetworkMessageInterface *  iface)
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::slot_onSaveScenario ( const DtScenario *  ,
DtPreserveMappingsFcn  fcn = 0,
void *  userData = 0,
bool  saveInZipFile = false,
bool  queueSave = false,
int  putIntoPlayMode = 0 
)
protectedvirtual

Called when a new scenario needs to be saved. Passed to simulation.

virtual void makVrf::DtVrfConnectionHelper::slot_onSaveCheckpoints ( std::vector< DtScenario * >  ,
DtFilename   
)
protectedvirtual

Called when a scenario wants to start saving checkpoints. These will be added to a list, and, each time a checkpoint is saved a message will be sent back with the fact that it was saved and the number of items still left to save.

virtual void makVrf::DtVrfConnectionHelper::slot_onClearSavingCheckpoints ( )
protectedvirtual

Clears out the checkpoints to save. If there is one currently being saved that will not effect it.

virtual void makVrf::DtVrfConnectionHelper::slot_onLoadScenario ( const DtScenarioLoadInformation &  )
protectedvirtual

Called when a scenario needs to be loaded. Passed to simulation.

virtual void makVrf::DtVrfConnectionHelper::slot_onRollbackToSnapshot ( double  )
protectedvirtual

Called to rollback to a snapshot at a given simulation time.

virtual void makVrf::DtVrfConnectionHelper::slot_registerCommentInteraction ( bool  )
protectedvirtual

Called to register/unregister for comment interactions.

virtual void makVrf::DtVrfConnectionHelper::slot_registerInfluenceInteraction ( bool  )
protectedvirtual

Called to register/unregister for influence interactions. Even though exposed to DIS will only currently work when running HLA.

static void makVrf::DtVrfConnectionHelper::influenceInteractionCallback ( const makVrfEvents::DtInfluenceEvent *  inter,
void *  usr 
)
staticprotected

Invoked when an influence interaction is received from the network. Calls processInfluenceInteraction().

virtual void makVrf::DtVrfConnectionHelper::processInfluenceInteraction ( const makVrfEvents::DtInfluenceEvent *  inter)
protectedvirtual

Processes an incoming comment interaction. Object console messages are sent via comment interactions.

static void makVrf::DtVrfConnectionHelper::commentInteractionCallback ( const makVrfEvents::DtCommentEvent *  inter,
void *  usr 
)
staticprotected

Invoked when a comment interaction is received from the network. Calls processCommentInteraction().

virtual void makVrf::DtVrfConnectionHelper::processCommentInteraction ( const makVrfEvents::DtCommentEvent *  inter)
protectedvirtual

Processes an incoming comment interaction. Object console messages are sent via comment interactions.

virtual void makVrf::DtVrfConnectionHelper::regsiterInfluenceIteractionCallback ( DtInfluenceEventCb  ,
void *   
)
protectedvirtual

Register for influence callbacks.

virtual void makVrf::DtVrfConnectionHelper::unregsiterInfluenceIteractionCallback ( DtInfluenceEventCb  ,
void *   
)
protectedvirtual

Unregister for influence callbacks.

virtual Coordinate_System* makVrf::DtVrfConnectionHelper::createVrfCoordinateSystem ( const makVrv::DtCoordinateSystem &  coodSysIn)
protectedvirtual
static void makVrf::DtVrfConnectionHelper::scenarioAboutToBeSaved ( DtScenario &  ,
void *   
)
staticprotected

Called when the scenario is about to be saved. Substitue in information that was marked for change.

virtual void makVrf::DtVrfConnectionHelper::processScenarioAboutToBeSaved ( DtScenario &  ) const
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::saveScenario ( const DtScenario *  ,
DtPreserveMappingsFcn  fcn = 0,
void *  userData = 0,
bool  deleteMemory = false,
bool  saveInZipFile = false,
bool  queueSave = false,
int  putIntoPlayMode = 0 
)
protectedvirtual

Called when a scenario needs to be saved. If deleteMemory is true, deletes supplied scenario.

virtual void makVrf::DtVrfConnectionHelper::saveCheckpoints ( const std::vector< DtScenario * > &  ,
const DtFilename &  baseName 
)
protectedvirtual

Sends signal to save the specified checkpoints. The sim time specified in the scenario will be the checkpoint time to try and save. Once set into there, the driver will delete the scenario memory.

virtual void makVrf::DtVrfConnectionHelper::saveNextCheckpoint ( )
protectedvirtual

If there is a checkpoint to be saved, save it.

virtual void makVrf::DtVrfConnectionHelper::slot_quitBackend ( DtSimulationAddress  )
protectedvirtual

Received when wanting to quit all back-ends. Will also set shared bit that the message has been sent.

virtual void makVrf::DtVrfConnectionHelper::symbolDecorationsChanged ( )
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::setupParameterDatabase ( std::vector< DtFilename >  searchPaths)
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::setupEnumerations ( const std::vector< DtSimulationModelSet * > &  sets)
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::createGlobalDynamicTerrain ( bool  )
protectedvirtual

Create/destroy global dynamic terrain (if not already)

virtual void makVrf::DtVrfConnectionHelper::slot_modelSetLoaded ( std::vector< DtFilename >  searchPaths)
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::setupDirectConnections ( )
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::disconnectConnections ( )
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::sendScenarioLoadSuccessMessage ( )
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::sendScenarioLoadErrorMessage ( DtString  error)
protectedvirtual
static void makVrf::DtVrfConnectionHelper::scenarioSavedCallback ( DtSaveResult  result,
const DtString &  error,
void *  usr 
)
staticprotected
virtual void makVrf::DtVrfConnectionHelper::processScenarioSaved ( DtSaveResult  ,
const DtString &   
)
protectedvirtual
static void makVrf::DtVrfConnectionHelper::scenarioCheckpointed ( DtSaveResult  result,
double  ,
void *   
)
staticprotected
virtual void makVrf::DtVrfConnectionHelper::processScenarioCheckpointed ( DtSaveResult  result,
double   
)
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::runFunctionQueue ( )
protectedvirtual

Runs the function queue (call in a tick)

virtual void makVrf::DtVrfConnectionHelper::runPostAdvanceFrameFunctionQueue ( )
protectedvirtual

Run after state data manager has advanced frame.

static void makVrf::DtVrfConnectionHelper::simMessageCallback ( DtSimMessage *  msg,
void *  usr 
)
staticprotected

Called when processing sim messages. Will call receivedNetworkMessage with sim message interface wrapper.

virtual void makVrf::DtVrfConnectionHelper::processSimMessage ( DtSimMessage *  msg)
protectedvirtual
static void makVrf::DtVrfConnectionHelper::radioMessageCallback ( const DtVrfObjectMessage *  msg,
void *  usr 
)
staticprotected

Processing of VRF object messages.

virtual void makVrf::DtVrfConnectionHelper::processRadioMessage ( const DtVrfObjectMessage *  msg)
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::registerExistingMessages ( )
protectedvirtual
template<typename _Class , typename _CallbackFunction >
DtVrfConnectionHelperMessageCallbackHandler* makVrf::DtVrfConnectionHelper::addEventManagerCallback ( makVrfEvents::DtEvent::EventType  et,
_CallbackFunction  fcn,
void *  usr 
)
inlineprotected
template<typename _Class , typename _CallbackFunction >
void makVrf::DtVrfConnectionHelper::removeEventManagerCallback ( makVrfEvents::DtEvent::EventType  et,
_CallbackFunction  fcn,
void *  usr 
)
inlineprotected
virtual void makVrf::DtVrfConnectionHelper::remoteControllerInitialized ( )
protectedvirtual
static void makVrf::DtVrfConnectionHelper::sessionStatusChangedCallback ( const DtSessionUpdateInformation &  addr,
void *   
)
staticprotected
virtual void makVrf::DtVrfConnectionHelper::processSessionStatusChanged ( const DtSessionUpdateInformation &  )
protectedvirtual

Member Data Documentation

boost::signals2::signal<void (bool)> makVrf::DtVrfConnectionHelper::signal_parameterDatabaseInitialized

Signal sent when the parameter database has been asked to be changed. Flag will be true if it has been reinitialized, else will be false.

boost::signals2::signal<void (DtSimulationStatus)> makVrf::DtVrfConnectionHelper::signal_simulationStatusChanged
boost::signals2::signal<void ()> makVrf::DtVrfConnectionHelper::signal_scenarioLoaded
boost::signals2::signal<void (DtScenario&)> makVrf::DtVrfConnectionHelper::signal_scenarioAboutToBeSaved
boost::signals2::signal<void (DtSaveResult, const DtString&)> makVrf::DtVrfConnectionHelper::signal_scenarioSaved
makVrv::DtDe& makVrf::DtVrfConnectionHelper::myDe
protected
makVrv::DtBaseConnection* makVrf::DtVrfConnectionHelper::myConnection
protected
makVrv::DtSignalConnectionManager makVrf::DtVrfConnectionHelper::myConnections
protected
DtNetworkMessageInterfaceHandlerAgent* makVrf::DtVrfConnectionHelper::myNetworkMessageInterfaceHandlerAgent
protected

Agent for sending notification of messages received to the gui. This message will need to be deleted by the gui once received.

bool makVrf::DtVrfConnectionHelper::myInThreadFlag
protected
EventHandlerCallbacksMap makVrf::DtVrfConnectionHelper::myEventHandlerCallbacksMap
protected
FunctionCallQueue makVrf::DtVrfConnectionHelper::myConnectionThreadFunctions
protected
FunctionCallQueue makVrf::DtVrfConnectionHelper::myAdvancedFrameConnectionThreadFunctions
protected
DtVrfRemoteController* makVrf::DtVrfConnectionHelper::myRemoteController
protected
DtStateDataManager* makVrf::DtVrfConnectionHelper::myStateDataManager
protected
DtVrfCommunicationManager* makVrf::DtVrfConnectionHelper::myCommunicationManager
protected
Coordinate_System* makVrf::DtVrfConnectionHelper::myCoordinateSystem
protected
int makVrf::DtVrfConnectionHelper::mySessionId
protected
int makVrf::DtVrfConnectionHelper::myFileTransporterReceivePort
protected
DtAddressMap* makVrf::DtVrfConnectionHelper::myLastAddressMap
protected
DtBackendMap* makVrf::DtVrfConnectionHelper::myLastBackendMap
protected
CheckpointsToSave makVrf::DtVrfConnectionHelper::myCheckpointsToSave
protected
CheckpointsToSave makVrf::DtVrfConnectionHelper::myCheckpointsSaving
protected
DtVrfMessageInterface* makVrf::DtVrfConnectionHelper::myVrfMessageInterface
protected
DtSimDataProcessorManager* makVrf::DtVrfConnectionHelper::mySimDataProcessorManager
protected
makRadio::DtRadioProcessor* makVrf::DtVrfConnectionHelper::myRadioProcessor
protected
bool makVrf::DtVrfConnectionHelper::myStopped
protected
DtMtlParameterDb* makVrf::DtVrfConnectionHelper::myParameterDatabase
protected
double makVrf::DtVrfConnectionHelper::myParameterDatabaseTimerStart
protected
DtSimulationStatus makVrf::DtVrfConnectionHelper::mySimulationStatus
protected
DtVrfBackendInterceptor* makVrf::DtVrfConnectionHelper::myBackEndInterceptor
protected
DtVantageToLegionIdMapper* makVrf::DtVrfConnectionHelper::myVantageToLegionIdMapper
protected
std::set<int> makVrf::DtVrfConnectionHelper::mySimMessageCallbacks
protected
std::set<DtAdminContentMessageType> makVrf::DtVrfConnectionHelper::myAdminMessageCallbacks
protected
EventManagerEventCallbacks makVrf::DtVrfConnectionHelper::myEventManagerEventCallbacks
protected
std::set<DtSimReportMessageType> makVrf::DtVrfConnectionHelper::myReportMessageCallbacks
protected
std::set<DtSimTaskMessageType> makVrf::DtVrfConnectionHelper::myTaskMessageCallbacks
protected
std::set<DtSetMessageType> makVrf::DtVrfConnectionHelper::mySetMessageCallbacks
protected
std::map<DtSetMessageType, DtSetDataRequestCreatorFcn> makVrf::DtVrfConnectionHelper::mySetCreator
protected
std::map<DtSimTaskMessageType, DtSimTaskCreatorFcn> makVrf::DtVrfConnectionHelper::myTaskCreator
protected
std::map<int, DtInterfaceContentCreatorFcn> makVrf::DtVrfConnectionHelper::myInterfaceContentCreator
protected
std::map<DtAdminContentMessageType, DtAdminContentCreatorFcn> makVrf::DtVrfConnectionHelper::myAdminContentCreator
protected
std::map<DtSimCommandMessageType, DtSimCommandCreatorFcn> makVrf::DtVrfConnectionHelper::mySimulationCommandCreator
protected
std::map<std::string, std::pair<int, DtCondExprCreatorFcn> > makVrf::DtVrfConnectionHelper::myConditionCommandCreator
protected
std::map<int, DtVrfObjectMessageCreatorFcn> makVrf::DtVrfConnectionHelper::myObjectMessageCreator
protected
std::map<DtSimReportMessageType, DtSimReportCreatorFcn> makVrf::DtVrfConnectionHelper::myReportCreator
protected
std::vector<DtFilename> makVrf::DtVrfConnectionHelper::myModelSetSearchPaths
protected
bool makVrf::DtVrfConnectionHelper::mySignalOnParameterDatabaseReinitializeOnly
protected
DtThreadId makVrf::DtVrfConnectionHelper::myThreadId
protected
int makVrf::DtVrfConnectionHelper::myProposedNumberOfObjectsToBeLoaded = 0
protected
tbb::spin_mutex makVrf::DtVrfConnectionHelper::myConnectionThreadFunctionsMutex
protected
tbb::spin_mutex makVrf::DtVrfConnectionHelper::myAdvancedFrameConnectionThreadFunctionsMutex
protected
bool makVrf::DtVrfConnectionHelper::myDisableRemoteDiscovery = false
protected

The documentation for this class was generated from the following file:

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)